aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-10-23 18:26:08 +0200
committerRobert Tari <robert@tari.in>2021-10-23 18:26:08 +0200
commit69f835796ad89c39f232aa4073c778976c54e01f (patch)
treee36f8e8e092f26519f0e4ef2dd4a54caee64015d
parent61bb127d42eed3c44c363074a7ffa3e05a75b307 (diff)
parent1245eb78f2db30db8403cb4718de79e41a4a361b (diff)
downloadlibayatana-appindicator-69f835796ad89c39f232aa4073c778976c54e01f.tar.gz
libayatana-appindicator-69f835796ad89c39f232aa4073c778976c54e01f.tar.bz2
libayatana-appindicator-69f835796ad89c39f232aa4073c778976c54e01f.zip
Merge branch 'sunweaver-pr/add-enable-gtkdoc-cmake-option'
Attributes GH PR #32: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/32
-rw-r--r--CMakeLists.txt6
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}")