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)
#=========================================================
# 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)