SET(prj_MAJOR_VERSION 0)
SET(prj_MINOR_VERSION 1)
SET(prj_RELEASE_VERSION 0)
+SET(_subdirs lib plugins examples)
+SET(_policies CMP0015 CMP0020 CMP0042)
## ==========================
## == Some useful policies ==
## ==========================
-SET(_policies CMP0015 CMP0020 CMP0042)
FOREACH(_p ${_policies})
IF(POLICY ${_p})
CMAKE_POLICY(SET ${_p} NEW)
## == Functions, packages and options ==
## =====================================
-INCLUDE(cmake/Restrictions.cmake)
-INCLUDE(cmake/KitwareTools.cmake)
+INCLUDE(cmake/BaseConfig.cmake)
OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
IF(USE_cpPlugins)
- FIND_PACKAGE(cpPlugins REQUIRED)
- IF(USE_QT4)
- INCLUDE(cmake/QtTools.cmake)
- SET(
- cpPlugins_Qt4_VTKWidget QVTKWidget
- CACHE STRING "Base Qt4-based vtkRenderWindow"
- )
- MARK_AS_ADVANCED(FORCE cpPlugins_Qt4_VTKWidget)
- ENDIF(USE_QT4)
+ FIND_PACKAGE(cpPlugins)
+ MARK_AS_ADVANCED(CLEAR cpPlugins_DIR)
ENDIF(USE_cpPlugins)
+INCLUDE(cmake/KitwareTools.cmake)
+INCLUDE(cmake/QtTools.cmake)
INCLUDE(cmake/Functions.cmake)
## ===========================
## == Build different parts ==
## ===========================
-## SUBDIRS(appli cmake lib plugins)
-SUBDIRS(lib)
+FOREACH(_s ${_subdirs})
+ SUBDIRS(${_s})
+ENDFOREACH(_s)
## eof - $RCSfile$