diff --git a/CMakeLists.txt b/CMakeLists.txt index 442156c0c..f71c21930 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,8 +125,8 @@ install(TARGETS slsProjectOptions slsProjectWarnings rapidjson set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_INSTALL_RPATH "$ORIGIN") -set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) - +# set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) +set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) find_package(Doxygen) diff --git a/slsDetectorGui/CMakeLists.txt b/slsDetectorGui/CMakeLists.txt index e1da0e3b7..0e5fcda2f 100755 --- a/slsDetectorGui/CMakeLists.txt +++ b/slsDetectorGui/CMakeLists.txt @@ -95,3 +95,11 @@ set_target_properties(slsDetectorGui PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) +install(TARGETS slsDetectorGui + EXPORT "${TARGETS_EXPORT_NAME}" + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +) +