aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Chernyshchyk <genaloner@gmail.com>2022-06-09 23:36:46 +0300
committerHennadii Chernyshchyk <genaloner@gmail.com>2022-06-09 23:36:46 +0300
commit4a9b28e0b9d4578fd620934196e5aaca2872c8cf (patch)
tree0abb3a10569f9f379f990e6feca02c4a54e9dd8b
parentMerge pull request #160 from itay-grudev/itay-grudev-patch-1 (diff)
downloadsingleapplication-4a9b28e0b9d4578fd620934196e5aaca2872c8cf.tar.xz
Add an option to disable Doxygen
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fba9be0..8574e6b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,11 @@ else()
endif()
find_package(Qt${QT_DEFAULT_MAJOR_VERSION} COMPONENTS ${QT_COMPONENTS} REQUIRED)
-find_package(Doxygen)
+
+option(SINGLEAPPLICATION_DOCUMENTATION "Generate Doxygen documentation" ON)
+if(SINGLEAPPLICATION_DOCUMENTATION)
+ find_package(Doxygen)
+endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})