This commit is contained in:
2019-08-20 10:55:55 +02:00
parent 08ac9b4ce8
commit 38b7e23ac4
5 changed files with 143 additions and 27 deletions

View File

@ -0,0 +1,31 @@
add_executable(moenchDetectorServer
slsDetectorFunctionList.c
../slsDetectorServer/slsDetectorServer.c
../slsDetectorServer/slsDetectorServer_funcs.c
../slsDetectorServer/communication_funcs.c
)
include_directories(
../slsDetectorServer/
../../slsSupportLib/include
)
target_include_directories(moenchDetectorServer
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
)
target_compile_definitions(moenchDetectorServer
PUBLIC MOENCHD VIRTUAL STOP_SERVER
)
target_link_libraries(moenchDetectorServer
PUBLIC pthread rt
)
set_target_properties(moenchDetectorServer PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)
install(TARGETS moenchDetectorServer
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)