From f3b160c83aac30acac3ff3a331b3d6ca08bb5fc3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 21 Jan 2008 14:41:58 +0000 Subject: [PATCH] Introduced BUILD_REFERENCE_DOCS option to make it a bit clearer how to enable and build the DoxygenDocs --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc3a84984..e79203690 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -444,6 +444,12 @@ IF(APPLE) ENDIF(APPLE) +OPTION(BUILD_REFERENCE_DOCS "Build OpenSceneGraph reference documentation using doxygen (use: make DoxygenDoc)" OFF) + +IF(BUILD_REFERENCE_DOCS) + SET(BUILD_DOCUMENTATION YES) +ENDIF(BUILD_REFERENCE_DOCS) + # For Doxygen #FIXME: I haven't figured out what to do with OSG's multiple doxyfiles # and footer. @@ -452,6 +458,7 @@ INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL) # To build the documention, you will have to enable it # and then do the equivalent of "make DoxygenDoc". IF(BUILD_DOCUMENTATION) + SET(BUILD_DOCUMENTATION YES) IF(DOT) SET(HAVE_DOT YES) ELSE(DOT)