CMakeLists.txt 599 Bytes
Newer Older
1
2
TRIBITS_SUBPACKAGE(core)

3
4
TRIBITS_CONFIGURE_FILE(visibility.hh)

5
6
7
8
9
10
11
12
13
14
15
16
17
18
SET(HEADERS
system.hh
stringfunctions.i.hh
stringfunctions.hh
)
SET(SOURCES
system.cc
stringfunctions.cc
)

TRIBITS_ADD_LIBRARY(radixcore
   SOURCES ${SOURCES}
   NOINSTALLHEADERS ${HEADERS}
)
19
20
21
22
23
24
25
#
# Resolve MINGW linking of psapi library
IF(MINGW)
  FIND_LIBRARY(PSAPI psapi)
  MESSAGE(STATUS "Checking required PSAPI library")
  TARGET_LINK_LIBRARIES(radixcore "${PSAPI}")
ENDIF()
26
27
28
29
30
#
# Add testing directory
TRIBITS_ADD_TEST_DIRECTORIES(tests)
INSTALL(FILES ${HEADERS} DESTINATION "include/radixcore/")
TRIBITS_SUBPACKAGE_POSTPROCESS()