mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 00:32:49 +00:00
Merge branch 'fix_cmake_doxygen_flow' into 'master'
consolidate cmake documentation (BUILD_DOCS) flow See merge request OpenMW/openmw!4177
This commit is contained in:
commit
81ceb497a1
@ -168,13 +168,6 @@ option(OPENMW_USE_SYSTEM_GOOGLETEST "Use system Google Test library." OFF)
|
||||
option(OPENMW_UNITY_BUILD "Use fewer compilation units to speed up compile time" FALSE)
|
||||
option(OPENMW_LTO_BUILD "Build OpenMW with Link-Time Optimization (Needs ~2GB of RAM)" OFF)
|
||||
|
||||
# what is necessary to build documentation
|
||||
IF( BUILD_DOCS )
|
||||
# Builds the documentation.
|
||||
FIND_PACKAGE( Sphinx REQUIRED )
|
||||
FIND_PACKAGE( Doxygen REQUIRED )
|
||||
ENDIF()
|
||||
|
||||
# OS X deployment
|
||||
option(OPENMW_OSX_DEPLOYMENT OFF)
|
||||
|
||||
@ -1107,12 +1100,17 @@ elseif(NOT APPLE)
|
||||
endif(WIN32)
|
||||
endif(OPENMW_OSX_DEPLOYMENT AND APPLE)
|
||||
|
||||
# Doxygen Target -- simply run 'make doc' or 'make doc_pages'
|
||||
# output directory for 'make doc' is "${OpenMW_BINARY_DIR}/docs/Doxygen"
|
||||
# output directory for 'make doc_pages' is "${DOXYGEN_PAGES_OUTPUT_DIR}" if defined
|
||||
# or "${OpenMW_BINARY_DIR}/docs/Pages" otherwise
|
||||
find_package(Doxygen)
|
||||
if (DOXYGEN_FOUND)
|
||||
# what is necessary to build documentation
|
||||
if ( BUILD_DOCS )
|
||||
# Builds the documentation.
|
||||
FIND_PACKAGE( Sphinx REQUIRED )
|
||||
FIND_PACKAGE( Doxygen REQUIRED )
|
||||
|
||||
# Doxygen Target -- simply run 'make doc' or 'make doc_pages'
|
||||
# output directory for 'make doc' is "${OpenMW_BINARY_DIR}/docs/Doxygen"
|
||||
# output directory for 'make doc_pages' is "${DOXYGEN_PAGES_OUTPUT_DIR}" if defined
|
||||
# or "${OpenMW_BINARY_DIR}/docs/Pages" otherwise
|
||||
|
||||
# determine output directory for doc_pages
|
||||
if (NOT DEFINED DOXYGEN_PAGES_OUTPUT_DIR)
|
||||
set(DOXYGEN_PAGES_OUTPUT_DIR "${OpenMW_BINARY_DIR}/docs/Pages")
|
||||
|
Loading…
x
Reference in New Issue
Block a user