mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 01:00:02 +02:00
changes for the cmake
This commit is contained in:
parent
0fcf768772
commit
56aaaf2e07
@ -7,15 +7,62 @@ set(SOURCES
|
||||
src/slsReceiver.cpp
|
||||
src/slsReceiverUsers.cpp
|
||||
src/utilities.cpp
|
||||
src/File.cpp
|
||||
src/BinaryFile.cpp
|
||||
src/ThreadObject.cpp
|
||||
src/Listener.cpp
|
||||
src/DataProcessor.cpp
|
||||
src/DataStreamer.cpp
|
||||
src/Fifo.cpp
|
||||
)
|
||||
|
||||
|
||||
if (REST)
|
||||
MESSAGE("\n *** Using REST Implementation *** \n")
|
||||
list (APPEND SOURCES src/UDPRestImplementation.cpp)
|
||||
# add_library(poco etc.)
|
||||
else (REST)
|
||||
MESSAGE("\n *** Using Standard Implementation *** \n")
|
||||
endif (REST)
|
||||
|
||||
|
||||
|
||||
# HDF5
|
||||
if (HDF5_FOUND)
|
||||
set (HDF5DIR '/opt/hdf5v1.10.0/')
|
||||
|
||||
include_directories(
|
||||
${HDF5DIR}/include
|
||||
)
|
||||
add_definitions(
|
||||
-DHDF5C
|
||||
)
|
||||
add_library(hdf5 STATIC IMPORTED)
|
||||
add_library(hdf5_cpp STATIC IMPORTED)
|
||||
add_library(sz SHARED IMPORTED)
|
||||
add_library(z SHARED IMPORTED)
|
||||
set_target_properties(hdf5 PROPERTIES
|
||||
IMPORTED_LOCATION ${HDF5DIR}/lib/libhdf5.a
|
||||
)
|
||||
set_target_properties(hdf5_cpp PROPERTIES
|
||||
IMPORTED_LOCATION ${HDF5DIR}/lib/libhdf5_cpp.a
|
||||
)
|
||||
set_target_properties(sz PROPERTIES
|
||||
IMPORTED_LOCATION ${HDF5DIR}/lib/libsz.so
|
||||
)
|
||||
set_target_properties(z PROPERTIES
|
||||
IMPORTED_LOCATION ${HDF5DIR}/lib/libz.so
|
||||
)
|
||||
set(_hdf5_libs hdf5 hdf5_cpp sz z)
|
||||
endif ()
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DDACS_INT -DSLS_RECEIVER_UDP_FUNCTIONS
|
||||
)
|
||||
|
||||
include_directories(
|
||||
include
|
||||
../slsDetectorCalibration
|
||||
)
|
||||
|
||||
add_library(zmq STATIC IMPORTED )
|
||||
@ -53,4 +100,5 @@ target_link_libraries(slsReceiver
|
||||
pthread
|
||||
zmq
|
||||
rt
|
||||
${_hdf5_libs}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user