aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+github.com@grudev.com>2022-06-10 00:16:58 +0300
committerGitHub <noreply@github.com>2022-06-10 00:16:58 +0300
commitf1e15081dc57a9c03f7f4f165677f18802e1437a (patch)
tree87d5eecd15798d0833658ef5430dc403bff6cc79
parentMerge pull request #160 from itay-grudev/itay-grudev-patch-1 (diff)
parentDisable documentation by default (diff)
downloadsingleapplication-master.tar.xz
Merge pull request #161 from itay-grudev/opt-out-doxygenHEADmaster
Add an option to disable Doxygen
-rw-r--r--.github/workflows/doxygen.yml2
-rw-r--r--CMakeLists.txt6
2 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml
index d95226d..8137676 100644
--- a/.github/workflows/doxygen.yml
+++ b/.github/workflows/doxygen.yml
@@ -20,7 +20,7 @@ jobs:
- name: Generate documentation
run: |
- cmake -B build -D DOXYGEN_WARN_AS_ERROR=YES
+ cmake -B build -D SINGLEAPPLICATION_DOCUMENTATION=ON -D DOXYGEN_WARN_AS_ERROR=YES
cmake --build build --target SingleApplicationDocumentation
find build/html/ -name *.html -type f -exec sed -i 's+https://github.com/jothepro/doxygen-awesome-css+https://github.com/itay-grudev/SingleApplication+g' {} \;
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fba9be0..174d56c 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" OFF)
+if(SINGLEAPPLICATION_DOCUMENTATION)
+ find_package(Doxygen)
+endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})