## ========================
SET(prj_NAME cpPlugins)
-SET(prj_MAJOR_VERSION 0)
-SET(prj_MINOR_VERSION 1)
-SET(prj_RELEASE_VERSION 0)
+SET(prj_MAJ_VERSION 0)
+SET(prj_MIN_VERSION 1)
+SET(prj_REL_VERSION 0)
+SET(_subdirs cmake bash lib tools plugins appli)
+SET(_policies CMP0015 CMP0020 CMP0042)
## ==========================
## == Some useful policies ==
## ==========================
-SET(_policies CMP0015 CMP0020 CMP0042)
FOREACH(_p ${_policies})
IF(POLICY ${_p})
CMAKE_POLICY(SET ${_p} NEW)
## ===========================
PROJECT(${prj_NAME})
-SET(
- prj_VERSION
- "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}"
- )
-SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}")
+SET(prj_VERSION"${prj_MAJ_VERSION}.${prj_MIN_VERSION}.${prj_REL_VERSION}")
+SET(prj_SHORT_VERSION "${prj_MAJ_VERSION}")
## =====================================
## == Functions, packages and options ==
## =====================================
-INCLUDE(cmake/Restrictions.cmake)
+INCLUDE(cmake/BaseConfig.cmake)
INCLUDE(cmake/Options.cmake)
INCLUDE(cmake/KitwareTools.cmake)
INCLUDE(cmake/QtTools.cmake)
## == Build different parts ==
## ===========================
-SUBDIRS(appli cmake lib plugins)
+FOREACH(_s ${_subdirs})
+ SUBDIRS(${_s})
+ENDFOREACH(_s)
## eof - $RCSfile$