From a338e89480c48ddae17e74d653e6c5641b383540 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Thu, 21 Jul 2011 14:28:41 +0200 Subject: [PATCH] corrections for RPATH in clitk's make install --- registration/CMakeLists.txt | 1 + segmentation/CMakeLists.txt | 1 + tools/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/registration/CMakeLists.txt b/registration/CMakeLists.txt index e01247e..d15b4d4 100644 --- a/registration/CMakeLists.txt +++ b/registration/CMakeLists.txt @@ -88,6 +88,7 @@ IF(CLITK_BUILD_REGISTRATION) TARGET_LINK_LIBRARIES(clitkResampleBSplineDeformableTransform clitkCommon ${ITK_LIBRARIES}) SET(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkResampleBSplineDeformableTransform) + SET_TARGET_PROPERTIES(${REGISTRATION_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" ) INSTALL (TARGETS ${REGISTRATION_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) ENDIF(CLITK_BUILD_REGISTRATION) diff --git a/segmentation/CMakeLists.txt b/segmentation/CMakeLists.txt index b0bff3f..0275336 100644 --- a/segmentation/CMakeLists.txt +++ b/segmentation/CMakeLists.txt @@ -115,6 +115,7 @@ IF(CLITK_BUILD_SEGMENTATION) # TARGET_LINK_LIBRARIES(clitkTestFilter clitkSegmentationGgoLib clitkCommon vtkHybrid) # SET(SEGMENTATION_INSTALL ${TOOLS_INSTALL} clitkTestFilter) + SET_TARGET_PROPERTIES(${SEGMENTATION_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" ) INSTALL (TARGETS ${SEGMENTATION_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) ENDIF(CLITK_BUILD_SEGMENTATION) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index fecaef0..929156d 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -342,6 +342,7 @@ IF (CLITK_BUILD_TOOLS) SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer) ENDIF(CLITK_EXPERIMENTAL) + SET_TARGET_PROPERTIES(${TOOLS_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" ) INSTALL (TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) ENDIF(CLITK_BUILD_TOOLS) -- 2.47.1