[docs] Use FetchContent to grab CMake modules (#61)

This commit is contained in:
Jared Dillard
2025-12-11 00:55:00 -08:00
committed by GitHub
parent 8a1a73512d
commit cbbf4b572b
6 changed files with 100 additions and 46 deletions
+9 -2
View File
@@ -1,8 +1,15 @@
cmake_minimum_required(VERSION 3.15)
project(SphinxLLMsTxt VERSION 1.0.0 LANGUAGES NONE)
# Add CMake module path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# 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}")
# Add documentation
add_subdirectory(docs)