diff --git a/MQ/CMakeLists.txt b/MQ/CMakeLists.txt index 9e0a8c039dd2db110b1d97007c7f62d23683e40c..0aeb4fccbb9cae39d41e59b952e02a7b95285b2d 100644 --- a/MQ/CMakeLists.txt +++ b/MQ/CMakeLists.txt @@ -9,6 +9,24 @@ else() Set(FAIRMQ_LIBS FairMQ) EndIf() +# RPATH information should be present for executables in the build as well +# as in the installation directory + +# use, i.e. don't skip the full RPATH for the build tree +set(CMAKE_SKIP_BUILD_RPATH FALSE) + +# when building, don't use the install RPATH already +# (but later on when installing) +set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) + +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + +# add the automatically determined parts of the RPATH +# which point to directories outside the build tree to the install RPATH +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + + + add_subdirectory(base) add_subdirectory(source) add_subdirectory(sink)