summaryrefslogtreecommitdiff
path: root/cmake/doc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/doc/CMakeLists.txt')
-rw-r--r--cmake/doc/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/doc/CMakeLists.txt b/cmake/doc/CMakeLists.txt
new file mode 100644
index 00000000..88ef67a8
--- /dev/null
+++ b/cmake/doc/CMakeLists.txt
@@ -0,0 +1,14 @@
+find_package(Doxygen)
+
+if(DOXYGEN_EXECUTABLE)
+ OPTION(DBUS_ENABLE_DOXYGEN_DOCS "build DOXYGEN documentation (requires Doxygen)" ON)
+endif(DOXYGEN_EXECUTABLE)
+
+
+set (top_srcdir ${CMAKE_SOURCE_DIR}/..)
+configure_file(${CMAKE_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_BINARY_DIR}/Doxyfile )
+if (DBUS_ENABLE_DOXYGEN_DOCS)
+ add_custom_target(doc
+ COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
+ )
+endif (DBUS_ENABLE_DOXYGEN_DOCS)