aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/doc/CMakeLists.txt
blob: a1995e96fee64a8a289be36a48eac2149716257a (plain)
1
2
3
4
5
6
7
8
9
10
message("Building ApiExtractor documentation")
find_program(SPHINX sphinx-build DOC "Path to sphinx-build binary.")

if (SPHINX)
    message(STATUS "sphinx-build - found")
    configure_file(conf.py.in conf.py @ONLY)
    add_custom_target(doc_apiextractor ${SPHINX} -b html -c . ${CMAKE_CURRENT_SOURCE_DIR} html )
else()
    message(STATUS "sphinx-build - not found! doc_apiextractor target disabled")
endif()