From: Romulo Pinho Date: Thu, 21 Jul 2011 12:28:41 +0000 (+0200) Subject: corrections for RPATH in clitk's make install X-Git-Tag: v1.3.0~274^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a338e89480c48ddae17e74d653e6c5641b383540;p=clitk.git corrections for RPATH in clitk's make install --- 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)