mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 03:20:42 +02:00
build interface
This commit is contained in:
parent
e7e201bd2a
commit
775d0842e9
@ -15,7 +15,6 @@ add_library(slsDetectorShared SHARED
|
|||||||
${HEADERS}
|
${HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Do we have link time optimization?
|
# Do we have link time optimization?
|
||||||
check_ipo_supported(RESULT LTO_AVAILABLE)
|
check_ipo_supported(RESULT LTO_AVAILABLE)
|
||||||
if(LTO_AVAILABLE)
|
if(LTO_AVAILABLE)
|
||||||
@ -28,13 +27,15 @@ target_include_directories(slsDetectorShared PUBLIC
|
|||||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(slsDetectorShared PUBLIC
|
target_link_libraries(slsDetectorShared
|
||||||
slsProjectOptions
|
PUBLIC
|
||||||
slsProjectWarnings
|
|
||||||
slsSupportLib
|
slsSupportLib
|
||||||
zmq
|
|
||||||
pthread
|
pthread
|
||||||
rt
|
rt
|
||||||
|
PRIVATE
|
||||||
|
slsProjectOptions
|
||||||
|
slsProjectWarnings
|
||||||
|
${ZeroMQ_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,11 +61,14 @@ set_target_properties(slsSupportLib PROPERTIES
|
|||||||
message(${ZeroMQ_LIBRARIES})
|
message(${ZeroMQ_LIBRARIES})
|
||||||
|
|
||||||
target_link_libraries(slsSupportLib
|
target_link_libraries(slsSupportLib
|
||||||
|
PRIVATE
|
||||||
|
${ZeroMQ_LIBRARIES}
|
||||||
slsProjectOptions
|
slsProjectOptions
|
||||||
slsProjectWarnings
|
slsProjectWarnings
|
||||||
# ${ZeroMQ_LIBRARIES}
|
rapidjson
|
||||||
zmq
|
)
|
||||||
rapidjson)
|
|
||||||
|
|
||||||
|
|
||||||
if (SLS_USE_TESTS)
|
if (SLS_USE_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user