16 lines
444 B
CMake
16 lines
444 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(SphinxDocs VERSION 1.0.0 LANGUAGES NONE)
|
|
|
|
# Fetch Sphinx CMake modules
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
sphinx_cmake_modules
|
|
GIT_REPOSITORY https://github.com/jdillard/sphinx-cmake-modules.git
|
|
GIT_TAG main
|
|
)
|
|
FetchContent_MakeAvailable(sphinx_cmake_modules)
|
|
list(APPEND CMAKE_MODULE_PATH "${sphinx_cmake_modules_SOURCE_DIR}/cmake")
|
|
|
|
# Add documentation
|
|
add_subdirectory(docs)
|