Sha256: 5d08339b7bd8ecb44f117e61f98248c8b4c5d7a39b58c9cc333215475f59486a

Contents?: true

Size: 1.03 KB

Versions: 20

Compression:

Stored size: 1.03 KB

Contents

find_package(Doxygen)

IF(NOT DOXYGEN_FOUND)
    MESSAGE(STATUS "No Doxygen found. Documentation won't be built")
ELSE()
    file(GLOB SOURCES ${CMAKE_CURRENT_LIST_DIR}/../include/*)
    file(GLOB MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../doc/*.md)
    list(APPEND MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../readme.md)

    CONFIGURE_FILE(Doxyfile.in Doxyfile @ONLY)
    CONFIGURE_FILE(Doxyfile.zh-cn.in Doxyfile.zh-cn @ONLY)

    file(GLOB DOXYFILES ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile*)
    
    add_custom_command(OUTPUT html
        COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
        COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.zh-cn
        COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/html
        DEPENDS ${MARKDOWN_DOC} ${SOURCES} ${DOXYFILES}
        WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../
        )

    add_custom_target(doc ALL DEPENDS html)
    install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
        DESTINATION ${DOC_INSTALL_DIR}
        COMPONENT doc)
ENDIF()

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rj_schema-1.0.5 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-1.0.4 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-1.0.3 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-1.0.2 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-1.0.1 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-1.0.0 ext/rj_schema/rapidjson/doc/CMakeLists.txt
simdjson-0.3.0 vendor/simdjson/dependencies/rapidjson/doc/CMakeLists.txt
rj_schema-0.2.6 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.2.5 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.2.3 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.2.2 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.2.1 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.2.0 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.1.4 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.1.3 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.1.2 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.1.1 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.1.0 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.0.2 ext/rj_schema/rapidjson/doc/CMakeLists.txt
rj_schema-0.0.1 ext/rj_schema/rapidjson/doc/CMakeLists.txt