Make sure we're notifiying if the docs are available
This commit is contained in:
parent
65f966555d
commit
969310f327
@ -85,7 +85,7 @@ ADD_SUBDIRECTORY(bindings)
|
|||||||
add_feature_info("Examples" BUILD_EXAMPLES "Examples of PolyVox usage")
|
add_feature_info("Examples" BUILD_EXAMPLES "Examples of PolyVox usage")
|
||||||
add_feature_info("Tests" BUILD_TESTS "Unit tests")
|
add_feature_info("Tests" BUILD_TESTS "Unit tests")
|
||||||
add_feature_info("Bindings" BUILD_BINDINGS "SWIG bindings")
|
add_feature_info("Bindings" BUILD_BINDINGS "SWIG bindings")
|
||||||
add_feature_info("API docs" DOXYGEN_FOUND "HTML documentation of the API")
|
add_feature_info("API docs" BUILD_DOCS "HTML documentation of the API")
|
||||||
add_feature_info("Manual" BUILD_MANUAL "HTML user's manual")
|
add_feature_info("Manual" BUILD_MANUAL "HTML user's manual")
|
||||||
|
|
||||||
feature_summary(WHAT ALL)
|
feature_summary(WHAT ALL)
|
||||||
@ -97,6 +97,6 @@ MESSAGE(STATUS "-------")
|
|||||||
MESSAGE(STATUS "Build examples: " ${BUILD_EXAMPLES})
|
MESSAGE(STATUS "Build examples: " ${BUILD_EXAMPLES})
|
||||||
MESSAGE(STATUS "Build tests: " ${BUILD_TESTS})
|
MESSAGE(STATUS "Build tests: " ${BUILD_TESTS})
|
||||||
MESSAGE(STATUS "Build bindings: " ${BUILD_BINDINGS})
|
MESSAGE(STATUS "Build bindings: " ${BUILD_BINDINGS})
|
||||||
MESSAGE(STATUS "API Docs available: " ${DOXYGEN_FOUND})
|
MESSAGE(STATUS "API Docs available: " ${BUILD_DOCS})
|
||||||
MESSAGE(STATUS "Build manual: " ${BUILD_MANUAL})
|
MESSAGE(STATUS "Build manual: " ${BUILD_MANUAL})
|
||||||
MESSAGE(STATUS "")
|
MESSAGE(STATUS "")
|
||||||
|
@ -135,6 +135,7 @@ set_package_properties(Doxygen PROPERTIES URL http://www.doxygen.org DESCRIPTION
|
|||||||
|
|
||||||
#Documentation
|
#Documentation
|
||||||
if(DOXYGEN_FOUND)
|
if(DOXYGEN_FOUND)
|
||||||
|
SET(BUILD_DOCS ON PARENT_SCOPE)
|
||||||
#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.css ${CMAKE_CURRENT_BINARY_DIR}/polyvox.css)
|
#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.css ${CMAKE_CURRENT_BINARY_DIR}/polyvox.css)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
|
||||||
#This is just the default doc target which only runs Doxygen
|
#This is just the default doc target which only runs Doxygen
|
||||||
@ -167,4 +168,6 @@ if(DOXYGEN_FOUND)
|
|||||||
OPTIONAL
|
OPTIONAL
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
SET(BUILD_DOCS OFF PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user