Add preliminary feature_summary work

This uses a built-in command for displaying features.
This commit is contained in:
Matt Williams
2012-07-15 20:14:15 +01:00
parent 7f64bc933a
commit ca6f98c339
2 changed files with 25 additions and 1 deletions

View File

@ -7,11 +7,20 @@ SET(POLYVOX_VERSION_MINOR "1")
SET(POLYVOX_VERSION_PATCH "0")
SET(POLYVOX_VERSION "${POLYVOX_VERSION_MAJOR}.${POLYVOX_VERSION_MINOR}.${POLYVOX_VERSION_PATCH}")
include(FeatureSummary)
FIND_PACKAGE(Doxygen)
set_package_properties(Doxygen PROPERTIES URL http://www.doxygen.org DESCRIPTION "API documentation generator" TYPE OPTIONAL PURPOSE "Building the API documentation")
OPTION(ENABLE_EXAMPLES "Should the examples be built" ON)
#set_package_properties(Sphinx PROPERTIES TYPE OPTIONAL PURPOSE "Building the manual")
# Qt is required for building the tests, the example and optionally for bundling the documentation
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtOpenGL QtTest)
INCLUDE(${QT_USE_FILE})
set_package_properties(Qt4 PROPERTIES DESCRIPTION "C++ framework" URL http://qt-project.org)
set_package_properties(Qt4 PROPERTIES TYPE RECOMMENDED PURPOSE "Building the examples")
set_package_properties(Qt4 PROPERTIES TYPE OPTIONAL PURPOSE "Building the tests")
if(MSVC AND (MSVC_VERSION LESS 1600))
# Require boost for older (pre-vc2010) Visual Studio compilers
@ -67,6 +76,20 @@ ENDIF()
ADD_SUBDIRECTORY(documentation)
set_package_properties(SWIG PROPERTIES DESCRIPTION "Bindings generator" URL http://www.swig.org)
set_package_properties(PythonLibs PROPERTIES DESCRIPTION "Programming language" URL http://www.python.org)
add_feature_info("Static libraries" BUILD_STATIC_LIBRARIES "Will static libraries be built")
add_feature_info("Dynamic libraries" BUILD_DYNAMIC_LIBRARIES "Will dynamic libraries be built")
add_feature_info("Examples" ENABLE_EXAMPLES "Examples of PolyVox usage")
add_feature_info("Tests" BUILD_TESTING "Unit tests")
add_feature_info("API docs" DOXYGEN_FOUND "HTML documentation of the API")
add_feature_info("Manual" ENABLE_EXAMPLES "HTML user's manual")
add_feature_info("Bindings" BUILD_BINDINGS "SWIG bindings")
add_feature_info("Qt Help" BUILD_AND_BUNDLE_DOCS "API docs and manual in Qt Help format")
feature_summary(WHAT ALL)
# Option summary
MESSAGE(STATUS "")
MESSAGE(STATUS "Summary")