1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-03 15:40:53 +02:00

automatically use correct project version and update html settings

This commit is contained in:
Lars Melchior 2020-06-03 13:30:18 +02:00
parent c7ea73b078
commit 9532b62f5b
3 changed files with 15 additions and 12 deletions

View file

@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(GreeterDocumentation
LANGUAGES CXX
)
project(GreeterDocs)
# ---- Dependencies ----
@ -24,7 +22,12 @@ CPMAddPackage(
set(BUILD_DOCUMENTATION ON CACHE INTERNAL "")
include(${StableCoder-cmake-scripts_SOURCE_DIR}/doxygen.cmake)
# see https://github.com/StableCoder/cmake-scripts#doxygen-doxygencmake for options
# set Doxyfile variables
set(DOXYGEN_PROJECT_NAME Greeter)
set(DOXYGEN_PROJECT_VERSION ${Greeter_VERSION})
set(DOXYGEN_PROJECT_ROOT "${CMAKE_CURRENT_LIST_DIR}/..")
# see https://github.com/StableCoder/cmake-scripts#doxygen-doxygencmake for additional options
build_docs(
TARGET_NAME GenerateDocs
DOXYFILE_PATH ${CMAKE_CURRENT_LIST_DIR}/Doxyfile