Add preliminary feature_summary work
This uses a built-in command for displaying features.
This commit is contained in:
@ -7,11 +7,20 @@ SET(POLYVOX_VERSION_MINOR "1")
|
|||||||
SET(POLYVOX_VERSION_PATCH "0")
|
SET(POLYVOX_VERSION_PATCH "0")
|
||||||
SET(POLYVOX_VERSION "${POLYVOX_VERSION_MAJOR}.${POLYVOX_VERSION_MINOR}.${POLYVOX_VERSION_PATCH}")
|
SET(POLYVOX_VERSION "${POLYVOX_VERSION_MAJOR}.${POLYVOX_VERSION_MINOR}.${POLYVOX_VERSION_PATCH}")
|
||||||
|
|
||||||
|
include(FeatureSummary)
|
||||||
|
|
||||||
FIND_PACKAGE(Doxygen)
|
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
|
# Qt is required for building the tests, the example and optionally for bundling the documentation
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtOpenGL QtTest)
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtOpenGL QtTest)
|
||||||
INCLUDE(${QT_USE_FILE})
|
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))
|
if(MSVC AND (MSVC_VERSION LESS 1600))
|
||||||
# Require boost for older (pre-vc2010) Visual Studio compilers
|
# Require boost for older (pre-vc2010) Visual Studio compilers
|
||||||
@ -67,6 +76,20 @@ ENDIF()
|
|||||||
|
|
||||||
ADD_SUBDIRECTORY(documentation)
|
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
|
# Option summary
|
||||||
MESSAGE(STATUS "")
|
MESSAGE(STATUS "")
|
||||||
MESSAGE(STATUS "Summary")
|
MESSAGE(STATUS "Summary")
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
find_program(SPHINXBUILD_EXECUTABLE sphinx-build DOC "The location of the sphinx-build executable")
|
find_program(SPHINXBUILD_EXECUTABLE sphinx-build DOC "The location of the sphinx-build executable")
|
||||||
|
|
||||||
if(SPHINXBUILD_EXECUTABLE AND QT_QCOLLECTIONGENERATOR_EXECUTABLE)
|
#if(SPHINXBUILD_EXECUTABLE AND QT_QCOLLECTIONGENERATOR_EXECUTABLE)
|
||||||
|
if(SPHINXBUILD_EXECUTABLE)
|
||||||
message(STATUS "Found `sphinx-build` at ${SPHINXBUILD_EXECUTABLE}")
|
message(STATUS "Found `sphinx-build` at ${SPHINXBUILD_EXECUTABLE}")
|
||||||
set(BUILD_MANUAL YES PARENT_SCOPE)
|
set(BUILD_MANUAL YES PARENT_SCOPE)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user