IF(USE_QT4)
- find_package(ITK REQUIRED)
- include(${ITK_USE_FILE})
- find_package(VTK REQUIRED)
- include(${VTK_USE_FILE})
+ SET(App_NAME "ImageMPR")
+ IF(WIN32)
CONFIGURE_FILE(
+ Plugins.cfg.in
+ ${PROJECT_BINARY_DIR}/appli/${App_NAME}/Plugins.cfg
+ @ONLY
+ )
+ ELSE(WIN32)
+ CONFIGURE_FILE(
Plugins.cfg.in
${PROJECT_BINARY_DIR}/Plugins.cfg
@ONLY
)
+ ENDIF(WIN32)
+
## ====================================================
## = Source code, user interafaces and resources here =
## ====================================================
- SET(App_NAME "ImageMPR")
+
SET(App_SOURCE_DIR "${PROJECT_SOURCE_DIR}/appli/${App_NAME}")
SET(App_BINARY_DIR "${PROJECT_BINARY_DIR}/appli/${App_NAME}")
## TODO: check rpm and deb configuration for linux
##
+set(CONFIG_FILE
+ ${PROJECT_BINARY_DIR}/appli/ImageMPR/Plugins.cfg
+)
+
set(QT_PACKAGE_LIBRARIES
C:/src/qt/qt4.8.6/bin/QtCore4.dll
C:/src/qt/qt4.8.6/bin/QtCored4.dll
${QT_PACKAGE_LIBRARIES}
${ITK_PACKAGE_LIBRARIES}
${VTK_PACKAGE_LIBRARIES}
+ ${CONFIG_FILE}
)
# Tell CMake to copy CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS content into the package
set(CPACK_PACKAGE_NAME "cpPluginsMprViewer")
-set(CPACK_PACKAGE_VENDOR "Creatis")
+set(CPACK_PACKAGE_VENDOR "Creatis & Pontificia Universidad Javeriana")
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 "0.0.2")
+set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "0")
-set(CPACK_PACKAGE_VERSION_PATCH "0")
+set(CPACK_PACKAGE_VERSION_PATCH "2")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "MPR-Viewer")
install(TARGETS ImageMPR
ImageMPR_ConnectAction( LoadPlugins );
ImageMPR_ConnectAction( ShowPlugins );
- // Try to load default plugins
- this->m_Plugins->LoadPluginsConfigurationFile( "Plugins.cfg" );
+ // Try to load default plugins
+#ifdef WIN32
+ this->m_Plugins->LoadPlugins("cpPluginsIO.dll");
+ this->m_Plugins->LoadPlugins("cpPluginsBasicFilters.dll");
+#else
+ this->m_Plugins->LoadPluginsConfigurationFile("Plugins.cfg");
+#endif
this->m_Plugins->AssociatePluginsToMenu(
this->m_UI->MenuFilters, this, SLOT( _execPlugin( ) )
);