]> Creatis software - FrontAlgorithms.git/blobdiff - CMakeLists.txt
Merge
[FrontAlgorithms.git] / CMakeLists.txt
index 84bf1fa26fec2072b04df56f48d037dead74f57e..5bf1a02de46646e08d9459923c97558beb66a203 100644 (file)
@@ -21,10 +21,13 @@ ENDFOREACH(policy)
 ## ================
 
 PROJECT(FrontAlgorithms)
-SET(FrontAlgorithms_MAJOR_VERSION   "0")
-SET(FrontAlgorithms_MINOR_VERSION   "0")
-SET(FrontAlgorithms_RELEASE_VERSION "1")
-SET(FrontAlgorithms_VERSION "${FrontAlgorithms_MAJOR_VERSION}.${FrontAlgorithms_MINOR_VERSION}.${FrontAlgorithms_RELEASE_VERSION}")
+SET(prj_MAJOR_VERSION   "0")
+SET(prj_MINOR_VERSION   "0")
+SET(prj_RELEASE_VERSION "1")
+SET(
+  prj_VERSION
+  "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}"
+  )
 
 ## ===========
 ## = Options =
@@ -46,22 +49,8 @@ ENDIF(BUILD_SHARED_LIBS)
 # Prepare header to build shared libs (windows)
 INCLUDE(GenerateExportHeader)
 
-# Find ITK and VTK
-FIND_PACKAGE(ITK REQUIRED)
-FIND_PACKAGE(VTK REQUIRED)
-
-INCLUDE(${ITK_USE_FILE})
-INCLUDE(${VTK_USE_FILE})
-
-# Do not use itk-vtk glue --> problems ahead!!!
-IF(ITKVtkGlue_LOADED)
-  MESSAGE(FATAL_ERROR "ITKVtkGlue module is available. Please re-compile your ITK without it. It could lead to nasty compilation problems... Just waiting for Kitware to solve it.")
-ENDIF(ITKVtkGlue_LOADED)
-
-OPTION(USE_cpPlugins "Build cpPlugins based stuff" OFF)
-IF(USE_cpPlugins)
-  FIND_PACKAGE(cpPlugins REQUIRED)
-ENDIF(USE_cpPlugins)
+# Find cpPlugins
+FIND_PACKAGE(cpPlugins REQUIRED)
 
 ## ================================================
 ## = Do not allow to build inside the source tree =