mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-01 10:20:04 +02:00
100 lines
2.4 KiB
CMake
100 lines
2.4 KiB
CMake
set(SOURCES
|
|
multiSlsDetector/multiSlsDetector.cpp
|
|
slsDetector/slsDetectorUsers.cpp
|
|
slsDetector/slsDetectorUtils.cpp
|
|
slsDetector/slsDetectorCommand.cpp
|
|
slsDetector/slsDetectorActions.cpp
|
|
slsDetector/slsDetector.cpp
|
|
slsDetectorAnalysis/angularConversion.cpp
|
|
slsDetectorAnalysis/angularConversionStatic.cpp
|
|
slsDetectorAnalysis/energyConversion.cpp
|
|
slsDetectorAnalysis/fileIO.cpp
|
|
slsDetectorAnalysis/postProcessing.cpp
|
|
slsDetectorAnalysis/postProcessingFuncs.cpp
|
|
slsReceiverInterface/receiverInterface.cpp
|
|
threadFiles/CondVar.cpp
|
|
threadFiles/Mutex.cpp
|
|
threadFiles/ThreadPool.cpp
|
|
usersFunctions/usersFunctions.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
)
|
|
|
|
include_directories(
|
|
commonFiles
|
|
multiSlsDetector
|
|
slsDetector
|
|
slsDetectorUtils
|
|
slsDetectorCommand
|
|
slsDetectorAnalysis
|
|
slsReceiverInterface
|
|
threadFiles
|
|
usersFunctions
|
|
../slsReceiverSoftware/include
|
|
../slsReceiverSoftware/MySocketTCP
|
|
)
|
|
|
|
add_definitions(
|
|
-DDACS_INT
|
|
)
|
|
|
|
add_library(zmq STATIC IMPORTED )
|
|
|
|
set_target_properties(zmq PROPERTIES
|
|
IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/../slsReceiverSoftware/include/libzmq.a
|
|
)
|
|
|
|
add_library(slsDetectorStatic STATIC
|
|
${SOURCES}
|
|
${HEADERS}
|
|
)
|
|
set_target_properties(slsDetectorStatic PROPERTIES
|
|
ARCHIVE_OUTPUT_NAME SlsDetector
|
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
|
|
add_library(slsDetectorShared SHARED
|
|
${SOURCES}
|
|
${HEADERS}
|
|
)
|
|
|
|
set(PUBLICHEADERS
|
|
commonFiles/sls_detector_defs.h
|
|
commonFiles/sls_detector_funcs.h
|
|
commonFiles/error_defs.h
|
|
slsDetector/slsDetectorUtils.h
|
|
slsDetector/slsDetector.h
|
|
slsDetector/slsDetectorActions.h
|
|
slsDetector/slsDetectorBase.h
|
|
slsDetector/slsDetectorUsers.h
|
|
slsDetectorAnalysis/postProcessing.h
|
|
slsDetectorAnalysis/detectorData.h
|
|
slsDetectorAnalysis/angularConversion.h
|
|
slsDetectorAnalysis/angularConversionStatic.h
|
|
|
|
)
|
|
set_target_properties(slsDetectorShared PROPERTIES
|
|
LIBRARY_OUTPUT_NAME SlsDetector
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
PUBLIC_HEADER "${PUBLICHEADERS}"
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(slsDetectorClient)
|
|
|
|
if(DOXYGEN_FOUND)
|
|
add_custom_target(doc
|
|
${DOXYGEN_EXECUTABLE}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/slsDetectorUsers.doxy
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS slsDetectorShared slsDetectorStatic
|
|
LIBRARY DESTINATION lib
|
|
PUBLIC_HEADER DESTINATION include
|
|
ARCHIVE DESTINATION lib)
|