Add an option to disable Doxygen

This commit is contained in:
Hennadii Chernyshchyk 2022-06-09 23:36:46 +03:00
parent 8f0a1ccc98
commit 4a9b28e0b9
No known key found for this signature in database
GPG Key ID: 24623302B8395825

View File

@ -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})