Debian Codegraph @

src/nvcore/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 PROJECT(nvcore)
2
3 SET(CORE_SRCS
4 nvcore.h
5 Array.h
6 Debug.h Debug.cpp
7 DefsGnucDarwin.h
8 DefsGnucLinux.h
9 DefsGnucWin32.h
10 DefsVcWin32.h
11 FileSystem.h FileSystem.cpp
12 ForEach.h
13 Library.h Library.cpp
14 Memory.h Memory.cpp
15 Ptr.h
16 RefCounted.h
17 StrLib.h StrLib.cpp
18 Stream.h
19 StdStream.h
20 TextWriter.h TextWriter.cpp
21 Timer.h Timer.cpp
22 Utils.h)
23
24 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
25
26 # targets
27 ADD_DEFINITIONS(-DNVCORE_EXPORTS)
28
29 IF(UNIX)
30 SET(LIBS ${LIBS} ${CMAKE_DL_LIBS})
31 ENDIF(UNIX)
32
33 IF(NVCORE_SHARED)
34 ADD_DEFINITIONS(-DNVCORE_SHARED=1)
35 ADD_LIBRARY(nvcore SHARED ${CORE_SRCS})
36 ELSE(NVCORE_SHARED)
37 ADD_LIBRARY(nvcore ${CORE_SRCS})
38 ENDIF(NVCORE_SHARED)
39
40 TARGET_LINK_LIBRARIES(nvcore ${LIBS})
41
42 # On NetBSD and FreeBSD backtrace() is provided by libexecinfo, not libc.
43 if (CMAKE_SYSTEM_NAME MATCHES "NetBSD" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
44 TARGET_LINK_LIBRARIES(nvcore execinfo)
45 endif()
46
47 INSTALL(TARGETS nvcore
48 RUNTIME DESTINATION bin
49 LIBRARY DESTINATION lib
50 ARCHIVE DESTINATION lib/static)