From: delmon Date: Tue, 22 Mar 2011 10:07:31 +0000 (+0000) Subject: Adapt vv RPATH to remove useless building path. X-Git-Tag: v1.2.0~141 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8a5119c7e901c14be7da9750a375761b5a1252a4;p=clitk.git Adapt vv RPATH to remove useless building path. Install vv in bin subdirectory. --- diff --git a/vv/CMakeLists.txt b/vv/CMakeLists.txt index 2383616..3d73df5 100644 --- a/vv/CMakeLists.txt +++ b/vv/CMakeLists.txt @@ -185,7 +185,7 @@ IF(WIN32) SET(EXE_ICON vvIcon.rc) ENDIF(WIN32) -LINK_DIRECTORIES(${QT_INCLUDES}) +LINK_DIRECTORIES(${QT_LIBRARY_DIR}) ADD_EXECUTABLE(vv ${vv_SRCS} vv.cxx ${vv_UI_CXX} ${EXE_ICON}) ADD_DEPENDENCIES(vv clitkToolsGgoLib clitkSegmentationGgoLib) TARGET_LINK_LIBRARIES(vv clitkDicomRTStruct) @@ -205,8 +205,10 @@ clitkCommon ${ITK_LIBRARIES} QVTK vtkHybrid) #========================================================= # Install options (also used by CPack) IF(UNIX AND NOT APPLE) - INSTALL (FILES ${EXECUTABLE_OUTPUT_PATH}/vv DESTINATION . PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) - INSTALL (FILES ${CMAKE_CURRENT_SOURCE_DIR}/icons/ducky.png DESTINATION .) + SET_TARGET_PROPERTIES(vv + PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" ) + INSTALL (TARGETS vv DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) + # INSTALL (FILES ${CMAKE_CURRENT_SOURCE_DIR}/icons/ducky.png DESTINATION .) #QT #FOREACH(LIB QtCore QtGui QtOpenGL QtNetwork QtSql)