]> Creatis software - clitk.git/commitdiff
Adapt vv RPATH to remove useless building path.
authordelmon <delmon>
Tue, 22 Mar 2011 10:07:31 +0000 (10:07 +0000)
committerdelmon <delmon>
Tue, 22 Mar 2011 10:07:31 +0000 (10:07 +0000)
Install vv in bin subdirectory.

vv/CMakeLists.txt

index 23836162569d026c1d4d39915aa0c91477de425f..3d73df5959725be545bcf1a280d2a3bd602c6a0e 100644 (file)
@@ -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)