summaryrefslogtreecommitdiff
path: root/docs/doxygen/CMakeLists.txt
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:49 +0200
commit8dc8048d2cd4996825470bbfcb1e09e2a2630035 (patch)
tree9804282102f8c40d27407b9c94119b35eeb5013c /docs/doxygen/CMakeLists.txt
parentc9d0740841fbe0539e42e66d3865672bfcd3ac02 (diff)
parentb6bd52cd7330a90fc0e44dbe6022551a8dd768a1 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'docs/doxygen/CMakeLists.txt')
-rw-r--r--docs/doxygen/CMakeLists.txt23
1 files changed, 14 insertions, 9 deletions
diff --git a/docs/doxygen/CMakeLists.txt b/docs/doxygen/CMakeLists.txt
index 8ccbc65..5f2ac40 100644
--- a/docs/doxygen/CMakeLists.txt
+++ b/docs/doxygen/CMakeLists.txt
@@ -1,18 +1,23 @@
-PROJECT(doxygen)
+project(sourcedoc)
-INCLUDE(FindDoxygen)
+#
+# create source documentation using Doxygen
-IF(WIN32)
- SET( XTrkCAD_WLIB_DIR
+find_package(Doxygen
+ REQUIRED
+)
+
+if(WIN32)
+ set( XTrkCAD_WLIB_DIR
"mswlib" )
-ELSE(WIN32)
+else(WIN32)
SET( XTrkCAD_WLIB_DIR
"gtklib" )
-ENDIF(WIN32)
+endif(WIN32)
-CONFIGURE_FILE(${doxygen_SOURCE_DIR}/Doxyfile.in ${doxygen_BINARY_DIR}/Doxyfile)
+configure_file(${sourcedoc_SOURCE_DIR}/Doxyfile.in ${sourcedoc_BINARY_DIR}/Doxyfile)
-ADD_CUSTOM_TARGET(docs-doxygen
- COMMAND ${DOXYGEN_EXECUTABLE} ${doxygen_BINARY_DIR}/Doxyfile
+add_custom_target(docs-doxygen
+ COMMAND ${DOXYGEN_EXECUTABLE} ${sourcedoc_BINARY_DIR}/Doxyfile
)