git repos / blockattack-game

blame: source/misc/embedded_libs/fmt-8.1.1/doc/CMakeLists.txt

normal view · raw

a0630906 Poul Sander 2022-01-15 13:59 1
find_program(DOXYGEN doxygen)
a0630906 Poul Sander 2022-01-15 13:59 2
if (NOT DOXYGEN)
a0630906 Poul Sander 2022-01-15 13:59 3
  message(STATUS "Target 'doc' disabled (requires doxygen)")
a0630906 Poul Sander 2022-01-15 13:59 4
  return ()
a0630906 Poul Sander 2022-01-15 13:59 5
endif ()
a0630906 Poul Sander 2022-01-15 13:59 6
a0630906 Poul Sander 2022-01-15 13:59 7
find_package(PythonInterp QUIET REQUIRED)
a0630906 Poul Sander 2022-01-15 13:59 8
a0630906 Poul Sander 2022-01-15 13:59 9
add_custom_target(doc
a0630906 Poul Sander 2022-01-15 13:59 10
  COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/build.py
a0630906 Poul Sander 2022-01-15 13:59 11
                               ${FMT_VERSION}
a0630906 Poul Sander 2022-01-15 13:59 12
  SOURCES api.rst syntax.rst usage.rst build.py conf.py _templates/layout.html)
a0630906 Poul Sander 2022-01-15 13:59 13
a0630906 Poul Sander 2022-01-15 13:59 14
include(GNUInstallDirs)
a0630906 Poul Sander 2022-01-15 13:59 15
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
a0630906 Poul Sander 2022-01-15 13:59 16
        DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt OPTIONAL
a0630906 Poul Sander 2022-01-15 13:59 17
        PATTERN ".doctrees" EXCLUDE)
1970-01-01 00:00 18