CMakeLists.txt
31 lines
| 888 B
| text/plain
|
TextLexer
/ core / CMakeLists.txt
r1331 | FILE (GLOB_RECURSE core_SRCS | |||
include/*.h | ||||
src/*.cpp | ||||
) | ||||
r21 | ||||
r1331 | add_definitions(-DCORE_STATIC) | |||
r21 | ||||
r1331 | add_library(sciqlopcore ${core_SRCS}) | |||
SET_TARGET_PROPERTIES(sciqlopcore PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) | ||||
Alexandre Leroux
|
r66 | |||
r1331 | target_include_directories(sciqlopcore PUBLIC | |||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||||
$<INSTALL_INTERFACE:include/SciQLOP> | ||||
r257 | ) | |||
r1331 | target_link_libraries(sciqlopcore PUBLIC | |||
Qt5::Core | ||||
Qt5::Network | ||||
r1337 | catalogs | |||
r1064 | ) | |||
r1060 | ||||
r1331 | install(TARGETS sciqlopcore EXPORT SciQLOPCoreConfig | |||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||||
r21 | ||||
r1331 | install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SciQLOP) | |||
install(EXPORT SciQLOPCoreConfig DESTINATION share/SciQLOPCore/cmake) | ||||
export(TARGETS sciqlopcore FILE SciQLOPCoreConfig.cmake) | ||||
r21 | ||||
r1331 | add_subdirectory(tests) | |||