CMakeLists.txt 923 Bytes
Newer Older
Simon Spannagel's avatar
Simon Spannagel committed
1
2
3
4
5
# Include the dependencies
INCLUDE_DIRECTORIES(SYSTEM ${CORRYVRECKAN_DEPS_INCLUDE_DIRS})

# Create core library
ADD_LIBRARY(CorryvreckanCore SHARED
6
    Analysis.cpp
7
    detector/Detector.cpp
Simon Spannagel's avatar
Simon Spannagel committed
8
9
    utils/log.cpp
    utils/unit.cpp
Simon Spannagel's avatar
Simon Spannagel committed
10
    utils/text.cpp
11
    clipboard/Clipboard.cpp
Simon Spannagel's avatar
Simon Spannagel committed
12
13
14
15
    config/ConfigManager.cpp
    config/ConfigReader.cpp
    config/Configuration.cpp
    config/exceptions.cpp
16
    module/Module.cpp
Simon Spannagel's avatar
Simon Spannagel committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
)

# Link the dependencies
TARGET_LINK_LIBRARIES(CorryvreckanCore ${CORRYVRECKAN_DEPS_LIBRARIES})
TARGET_LINK_LIBRARIES(CorryvreckanCore ${CORRYVRECKAN_LIBRARIES})

# Define compile-time library extension
TARGET_COMPILE_DEFINITIONS(CorryvreckanCore PRIVATE SHARED_LIBRARY_SUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}")
# Link the DL libraries
TARGET_LINK_LIBRARIES(CorryvreckanCore ${CMAKE_DL_LIBS})

# Create standard install target
INSTALL(TARGETS CorryvreckanCore
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib)