From 4a9b28e0b9d4578fd620934196e5aaca2872c8cf Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Thu, 9 Jun 2022 23:36:46 +0300 Subject: [PATCH] Add an option to disable Doxygen --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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})