From 1245eb78f2db30db8403cb4718de79e41a4a361b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 23 Oct 2021 02:55:33 +0200 Subject: CMakeLists: Introduce -DENABLE_GTKDOC. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b439f0..f1e441e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) option(ENABLE_TESTS "Enable all tests and checks" OFF) option(ENABLE_COVERAGE "Enable coverage reports (includes enabling all tests and checks)" OFF) option(ENABLE_WERROR "Treat all build warnings as errors" OFF) +option(ENABLE_GTKDOC "Enable building GTK documentation" OFF) if(ENABLE_COVERAGE) set(ENABLE_TESTS ON) @@ -58,7 +59,9 @@ endif() add_subdirectory(src) add_subdirectory(bindings) -add_subdirectory(docs) +if (ENABLE_GTKDOC) + add_subdirectory(docs) +endif() if (ENABLE_TESTS) @@ -81,3 +84,4 @@ endif() message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}") message(STATUS "Unit tests: ${ENABLE_TESTS}") message(STATUS "Build with -Werror: ${ENABLE_WERROR}") +message(STATUS "API Documentation: ${ENABLE_GTKDOC}") -- cgit v1.2.3