From 87d539a04051d7f25f411a2b0298e97deb10fdb5 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Mon, 29 Jan 2018 16:18:12 +0100 Subject: [PATCH] header --- slsDetectorSoftware/CMakeLists.txt | 7 ++++++- slsReceiverSoftware/CMakeLists.txt | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/CMakeLists.txt b/slsDetectorSoftware/CMakeLists.txt index 185a57031..88559d702 100644 --- a/slsDetectorSoftware/CMakeLists.txt +++ b/slsDetectorSoftware/CMakeLists.txt @@ -63,6 +63,8 @@ set_target_properties(slsDetectorShared PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) + + add_subdirectory(slsDetectorClient) if(DOXYGEN_FOUND) @@ -74,4 +76,7 @@ if(DOXYGEN_FOUND) ) endif() -install(TARGETS slsDetectorShared slsDetectorStatic DESTINATION lib) +install(TARGETS slsDetectorShared slsDetectorStatic + LIBRARY DESTINATION lib + PUBLIC_HEADER DESTINATION include + ARCHIVE DESTINATION lib) diff --git a/slsReceiverSoftware/CMakeLists.txt b/slsReceiverSoftware/CMakeLists.txt index 7320ddcea..eca9d8602 100644 --- a/slsReceiverSoftware/CMakeLists.txt +++ b/slsReceiverSoftware/CMakeLists.txt @@ -64,6 +64,7 @@ add_library(slsReceiverShared SHARED set_target_properties(slsReceiverShared PROPERTIES LIBRARY_OUTPUT_NAME SlsReceiver LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + PUBLIC_HEADER "include/sls_receiver_defs.h" ) add_executable(slsReceiver @@ -88,4 +89,5 @@ endif () install(TARGETS slsReceiverShared slsReceiverStatic slsReceiver RUNTIME DESTINATION bin LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib) \ No newline at end of file + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include) \ No newline at end of file