diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-23 02:55:33 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-23 02:55:58 +0200 |
commit | 1245eb78f2db30db8403cb4718de79e41a4a361b (patch) | |
tree | e36f8e8e092f26519f0e4ef2dd4a54caee64015d | |
parent | 61bb127d42eed3c44c363074a7ffa3e05a75b307 (diff) | |
download | libayatana-appindicator-1245eb78f2db30db8403cb4718de79e41a4a361b.tar.gz libayatana-appindicator-1245eb78f2db30db8403cb4718de79e41a4a361b.tar.bz2 libayatana-appindicator-1245eb78f2db30db8403cb4718de79e41a4a361b.zip |
CMakeLists: Introduce -DENABLE_GTKDOC.
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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}") |