CMAKE_MINIMUM_REQUIRED(VERSION 3.0) ## ======================== ## == Project definition == ## ======================== SET(prj_NAME FrontAlgorithms) 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 == ## ========================== FOREACH(_p ${_policies}) IF(POLICY ${_p}) CMAKE_POLICY(SET ${_p} NEW) ENDIF(POLICY ${_p}) ENDFOREACH(_p) ## =========================== ## == Project configuration == ## =========================== PROJECT(${prj_NAME}) SET( prj_VERSION "${prj_MAJOR_VERSION}.${prj_MINOR_VERSION}.${prj_RELEASE_VERSION}" ) SET(prj_SHORT_VERSION "${prj_MAJOR_VERSION}") ## ===================================== ## == Functions, packages and options == ## ===================================== FIND_PACKAGE(cpPlugins QUIET) IF(cpPlugins_DIR) OPTION(USE_cpPlugins "Build cpPlugins-based code" ON) ELSE(cpPlugins_DIR) OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF) MARK_AS_ADVANCED(FORCE cpPlugins_DIR) ENDIF(cpPlugins_DIR) IF(USE_cpPlugins) FIND_PACKAGE(cpPlugins) MARK_AS_ADVANCED(CLEAR cpPlugins_DIR) ENDIF(USE_cpPlugins) INCLUDE(cmake/BaseConfig.cmake) INCLUDE(cmake/KitwareTools.cmake) INCLUDE(cmake/QtTools.cmake) INCLUDE(cmake/Functions.cmake) ## =========================== ## == Build different parts == ## =========================== FOREACH(_s ${_subdirs}) SUBDIRS(${_s}) ENDFOREACH(_s) ## eof - $RCSfile$