mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-02 10:50:05 +02:00
49 lines
998 B
CMake
49 lines
998 B
CMake
set(SOURCES
|
|
src/ClientInterface.cpp
|
|
src/CmdLineParser.cpp
|
|
src/string_utils.cpp
|
|
src/file_utils.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
)
|
|
|
|
set(PUBLICHEADERS
|
|
include/ansi.h
|
|
include/sls_detector_defs.h
|
|
include/sls_detector_funcs.h
|
|
include/error_defs.h
|
|
include/versionAPI.h
|
|
include/sls_detector_exceptions.h
|
|
include/file_utils.h
|
|
include/container_utils.h
|
|
include/string_utils.h
|
|
include/ClientInterface.h
|
|
include/MySocketTCP.h
|
|
include/genericSocket.h
|
|
include/logger.h
|
|
)
|
|
|
|
add_library(slsSupportLib SHARED
|
|
${SOURCES}
|
|
${HEADERS}
|
|
)
|
|
|
|
target_include_directories(slsSupportLib PUBLIC include)
|
|
|
|
set_target_properties(slsSupportLib PROPERTIES
|
|
LIBRARY_OUTPUT_NAME SlsSupport
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
PUBLIC_HEADER "${PUBLICHEADERS}"
|
|
)
|
|
|
|
if (USE_TESTS)
|
|
add_subdirectory(tests)
|
|
endif(USE_TESTS)
|
|
|
|
install(TARGETS slsSupportLib
|
|
LIBRARY DESTINATION lib
|
|
PUBLIC_HEADER DESTINATION include
|
|
ARCHIVE DESTINATION lib
|
|
)
|