IF(USE_QT4)
+ find_package(ITK REQUIRED)
+ include(${ITK_USE_FILE})
+ find_package(VTK REQUIRED)
+ include(${VTK_USE_FILE})
CONFIGURE_FILE(
Plugins.cfg.in
${QT_LIBRARIES}
cpExtensions
cpPlugins_Interface
- )
+ )
ENDIF(USE_QT4)
## eof - $RCSfile$
+
+##===================================================
+## cpPack
+##===================================================
+## It´s configured for windows
+## TODO: check rpm and deb configuration for linux
+##
+
+set(QT_PACKAGE_LIBRARIES
+ C:/src/qt/qt4.8.6/bin/QtCore4.dll
+ C:/src/qt/qt4.8.6/bin/QtCored4.dll
+ C:/src/qt/qt4.8.6/bin/QtDeclarative4.dll
+ C:/src/qt/qt4.8.6/bin/QtDeclaratived4.dll
+ C:/src/qt/qt4.8.6/bin/QtDesigner4.dll
+ C:/src/qt/qt4.8.6/bin/QtDesignerComponents4.dll
+ C:/src/qt/qt4.8.6/bin/QtDesignerComponentsd4.dll
+ C:/src/qt/qt4.8.6/bin/QtDesignerd4.dll
+ C:/src/qt/qt4.8.6/bin/QtGui4.dll
+ C:/src/qt/qt4.8.6/bin/QtGuid4.dll
+ C:/src/qt/qt4.8.6/bin/QtHelp4.dll
+ C:/src/qt/qt4.8.6/bin/QtHelpd4.dll
+ C:/src/qt/qt4.8.6/bin/QtMultimedia4.dll
+ C:/src/qt/qt4.8.6/bin/QtMultimediad4.dll
+ C:/src/qt/qt4.8.6/bin/QtNetwork4.dll
+ C:/src/qt/qt4.8.6/bin/QtNetworkd4.dll
+ C:/src/qt/qt4.8.6/bin/QtOpenGL4.dll
+ C:/src/qt/qt4.8.6/bin/QtOpenGLd4.dll
+ C:/src/qt/qt4.8.6/bin/QtScript4.dll
+ C:/src/qt/qt4.8.6/bin/QtScriptd4.dll
+ C:/src/qt/qt4.8.6/bin/QtScriptTools4.dll
+ C:/src/qt/qt4.8.6/bin/QtScriptToolsd4.dll
+ C:/src/qt/qt4.8.6/bin/QtSql4.dll
+ C:/src/qt/qt4.8.6/bin/QtSqld4.dll
+ C:/src/qt/qt4.8.6/bin/QtSvg4.dll
+ C:/src/qt/qt4.8.6/bin/QtSvgd4.dll
+ C:/src/qt/qt4.8.6/bin/QtTest4.dll
+ C:/src/qt/qt4.8.6/bin/QtTestd4.dll
+ C:/src/qt/qt4.8.6/bin/QtXml4.dll
+ C:/src/qt/qt4.8.6/bin/QtXmld4.dll
+ C:/src/qt/qt4.8.6/bin/QtXmlPatterns4.dll
+ C:/src/qt/qt4.8.6/bin/QtXmlPatternsd4.dll
+)
+
+set(ITK_PACKAGE_LIBRARIES
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKCommon-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOBioRad-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOBMP-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOGE-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOGIPL-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOHDF5-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOImageBase-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOIPL-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOJPEG-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOLSM-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOMesh-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOMeta-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIONIFTI-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIONRRD-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOPNG-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOSiemens-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOStimulate-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOTIFF-4.8.dll
+ C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOVTK-4.8.dll
+)
+
+set(VTK_PACKAGE_LIBRARIES
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkalglib-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkChartsCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonColor-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonComputationalGeometry-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonDataModel-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonExecutionModel-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonMath-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonMisc-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonSystem-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonTransforms-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkDICOMParser-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkDomainsChemistry-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkexoIIc-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkexpat-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersAMR-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersExtraction-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersFlowPaths-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersGeneral-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersGeneric-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersGeometry-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersHybrid-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersHyperTree-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersImaging-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersModeling-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersParallel-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersParallelImaging-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersProgrammable-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersSelection-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersSMP-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersSources-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersStatistics-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersTexture-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersVerdict-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkfreetype-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkftgl-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkGeovisCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkgl2ps-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkGUISupportQt-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkGUISupportQtOpenGL-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkhdf5-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkhdf5_hl-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingColor-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingFourier-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingGeneral-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingHybrid-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingMath-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingMorphological-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingSources-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingStatistics-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingStencil-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInfovisCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInfovisLayout-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInteractionImage-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInteractionStyle-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInteractionWidgets-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOAMR-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOEnSight-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOExodus-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOExport-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOGeometry-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOImage-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOImport-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOInfovis-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOLegacy-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOLSDyna-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOMINC-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOMovie-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIONetCDF-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOParallel-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOParallelXML-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOPLY-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOSQL-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOVideo-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOXML-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOXMLParser-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkjpeg-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkjsoncpp-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtklibxml2-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkmetaio-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkNetCDF-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkNetCDF_cxx-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkoggtheora-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkParallelCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkpng-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkproj4-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingAnnotation-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingContext2D-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingContextOpenGL-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingFreeType-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingGL2PS-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingImage-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingLabel-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingLIC-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingLOD-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingOpenGL-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingVolume-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingVolumeOpenGL-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtksys-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtktiff-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkverdict-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkViewsContext2D-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkViewsCore-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkViewsInfovis-6.3.dll
+ C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkzlib-6.3.dll
+)
+
+set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
+ ${QT_PACKAGE_LIBRARIES}
+ ${ITK_PACKAGE_LIBRARIES}
+ ${VTK_PACKAGE_LIBRARIES}
+)
+
+# Tell CMake to copy CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS content into the package
+include(InstallRequiredSystemLibraries)
+
+
+set(CPACK_PACKAGE_NAME "cpPluginsMprViewer")
+set(CPACK_PACKAGE_VENDOR "Creatis")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "cpPlugins - MPR-Viewer")
+set(CPACK_PACKAGE_VERSION "1.0.0")
+set(CPACK_PACKAGE_VERSION_MAJOR "1")
+set(CPACK_PACKAGE_VERSION_MINOR "0")
+set(CPACK_PACKAGE_VERSION_PATCH "0")
+set(CPACK_PACKAGE_INSTALL_DIRECTORY "MPR-Viewer")
+
+install(TARGETS ImageMPR
+ RUNTIME
+ DESTINATION bin
+ COMPONENT applications)
+
+set(CPACK_COMPONENT_APPLICATIONS_DISPLAY_NAME "Standard MPR viewer application")
+
+#set (CPACK_NSIS_MODIFY_PATH "ON")
+SET( CPACK_PACKAGE_EXECUTABLES ImageMPR ImageMPR )
+SET( CPACK_CREATE_DESKTOP_LINKS ImageMPR )
+
+INCLUDE(CPack)
\ No newline at end of file