mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-06 21:00:02 +02:00
63 lines
1.4 KiB
CMake
63 lines
1.4 KiB
CMake
set(src
|
|
slsDetectorFunctionList.c
|
|
../slsDetectorServer/slsDetectorServer.c
|
|
../slsDetectorServer/slsDetectorServer_funcs.c
|
|
../slsDetectorServer/communication_funcs.c
|
|
)
|
|
|
|
include_directories(
|
|
../slsDetectorServer
|
|
../../slsSupportLib/include
|
|
)
|
|
|
|
add_executable(eigerDetectorServerMaster
|
|
${src}
|
|
)
|
|
|
|
target_include_directories(eigerDetectorServerMaster
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_compile_definitions(eigerDetectorServerMaster
|
|
PUBLIC EIGERD PCCOMPILE STOP_SERVER
|
|
PUBLIC VIRTUAL DVIRTUAL_9M
|
|
PUBLIC VIRTUAL_MASTER
|
|
)
|
|
|
|
target_link_libraries(eigerDetectorServerMaster
|
|
PUBLIC pthread rt
|
|
)
|
|
|
|
set_target_properties(eigerDetectorServerMaster PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
|
|
install(TARGETS eigerDetectorServerMaster
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
)
|
|
|
|
add_executable(eigerDetectorServerSlave
|
|
${src}
|
|
)
|
|
|
|
target_include_directories(eigerDetectorServerSlave
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_compile_definitions(eigerDetectorServerSlave
|
|
PUBLIC EIGERD PCCOMPILE STOP_SERVER
|
|
PUBLIC VIRTUAL DVIRTUAL_9M
|
|
)
|
|
|
|
target_link_libraries(eigerDetectorServerSlave
|
|
PUBLIC pthread rt
|
|
)
|
|
|
|
set_target_properties(eigerDetectorServerSlave PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
|
|
install(TARGETS eigerDetectorServerSlave
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
)
|