add cmake configuration

This commit is contained in:
2016-08-31 20:54:06 +02:00
parent 6adc373e18
commit f8b62bba64
2 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,62 @@
set(SOURCES
sls_detector_client.cpp
)
include_directories(
../commonFiles
../multiSlsDetector
../slsDetector
../slsDetectorAnalysis
../slsReceiverInterface
../usersFunctions
../MySocketTCP
)
add_executable(sls_detector_get
${SOURCES}
)
target_link_libraries(sls_detector_get
slsDetectorShared
pthread
)
set_target_properties(sls_detector_get PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
COMPILE_DEFINITIONS GET=1
)
add_executable(sls_detector_put
${SOURCES}
)
target_link_libraries(sls_detector_put
slsDetectorShared
pthread
)
set_target_properties(sls_detector_put PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
COMPILE_DEFINITIONS PUT=1
)
add_executable(sls_detector_acquire
${SOURCES}
)
target_link_libraries(sls_detector_acquire
slsDetectorShared
pthread
)
set_target_properties(sls_detector_acquire PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
COMPILE_DEFINITIONS READOUT=1
)
add_executable(sls_detector_help
${SOURCES}
)
target_link_libraries(sls_detector_help
slsDetectorShared
pthread
)
set_target_properties(sls_detector_help PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
COMPILE_DEFINITIONS HELP=1
)