IF( ITK_FOUND AND wxWidgets_FOUND) OPTION(MedINRIA_IMAGEVIEWER "Build Image Viewer module of MedINRIA" ON) ADD_LIBRARY(ImageViewer wxImageViewer.cxx wxImageViewerInteractor.cxx wxImageThumbnail.cxx ) SET(wxImageViewer_SRCS wxImageViewerApp.cxx ) IF (WIN32) SET(GUI_EXECUTABLE WIN32) SET(wxImageViewer_SRCS wxImageViewer.rc ${wxImageViewer_SRCS} ) ENDIF(WIN32) IF (APPLE) SET(GUI_EXECUTABLE MACOSX_BUNDLE) SET(MACOSX_BUNDLE_ICON_FILE "imageviewer.icns") SET(wxImageViewer_SRCS imageviewer.icns ${wxImageViewer_SRCS} ) SET_SOURCE_FILES_PROPERTIES( imageviewer.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources ) ENDIF(APPLE) ADD_EXECUTABLE(wxImageViewer ${GUI_EXECUTABLE} ${wxImageViewer_SRCS} ) TARGET_LINK_LIBRARIES(wxImageViewer ImageViewer ${wxWidgets_LIBRARIES} vtkVisuManagement wxVtk wxAddOn vtkRenderingAddOn ${ITK_LIBRARIES} ) ADD_EXECUTABLE(DICOMImporter ${GUI_EXECUTABLE} wxDICOMImporterApp.cxx ) TARGET_LINK_LIBRARIES(DICOMImporter wxVtk wxAddOn vtkRenderingAddOn ${wxWidgets_LIBRARIES} ${ITK_LIBRARIES} ) INSTALL_FILES(/include "(\\.h|\\.txx)$") INSTALL_TARGETS(/bin wxImageViewer) INSTALL_TARGETS(/bin DICOMImporter) INSTALL_TARGETS(/lib ImageViewer) ENDIF( ITK_FOUND AND wxWidgets_FOUND)