1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-28 18:45:33 +00:00
openmw-tes3mp/docs/CMakeLists.txt
2016-07-05 12:07:31 +02:00

27 lines
775 B
CMake

IF( WANT_DOCS )
# Builds the documentation.
FIND_PACKAGE( Sphinx REQUIRED )
FIND_PACKAGE( Doxygen REQUIRED )
SET( SPHINX_SOURCE_DIR ${CMAKE_SOURCE_DIR}/docs/sphinx )
SET( DOCUMENTATION_DIR ${OpenMW_BINARY_DIR}/docs )
FILE(MAKE_DIRECTORY ${DOCUMENTATION_DIR}/_static)
FILE(MAKE_DIRECTORY ${DOCUMENTATION_DIR}/_templates)
CONFIGURE_FILE(
${SPHINX_SOURCE_DIR}/source/conf.py.in
${DOCUMENTATION_DIR}/conf.py
@ONLY)
CONFIGURE_FILE(
${SPHINX_SOURCE_DIR}/run_sphinx_build.sh.in
${DOCUMENTATION_DIR}/run_sphinx_build.sh
@ONLY)
IF(UNIX)
EXECUTE_PROCESS(COMMAND chmod +x ${DOCUMENTATION_DIR}/run_sphinx_build.sh OUTPUT_QUIET)
EXECUTE_PROCESS(COMMAND ${DOCUMENTATION_DIR}/run_sphinx_build.sh OUTPUT_QUIET)
ENDIF(UNIX)
ENDIF()