]> git.lyx.org Git - lyx.git/commitdiff
Added doxygen target if found doxygen executable
authorKornel Benko <kornel@lyx.org>
Mon, 16 May 2011 10:51:33 +0000 (10:51 +0000)
committerKornel Benko <kornel@lyx.org>
Mon, 16 May 2011 10:51:33 +0000 (10:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38775 a592a061-630c-0410-9148-cb99ea01b6c8

CMakeLists.txt
sourcedoc/CMakeLists.txt [new file with mode: 0644]

index 8403ea510b80a2626077134a3ad6d5e87f887302..367726bb54dbdec58ecb357f3abc6d18f2b0a4c8 100644 (file)
@@ -565,6 +565,7 @@ if(LYX_INSTALL)
        include(../Install)
 endif()
 
+add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc")
 
 message(STATUS)
 message(STATUS "Build options, switch LYX_* variables by -DLYX_*=1 or 0:")
diff --git a/sourcedoc/CMakeLists.txt b/sourcedoc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..42c2c48
--- /dev/null
@@ -0,0 +1,22 @@
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+#
+# Copyright (c) 2011 Peter Kümmel, <syntheticpp@gmx.net>
+# Copyright (c) 2011 Kornel Benko, <Kornel.Benko@berlin.de>
+#
+
+project(doxydoc)
+
+find_program(DOXYGEN_EXECUTABLE doxygen)
+if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND")
+  message(STATUS "doxygen not found, ==> no doxygen creation")
+else()
+  add_custom_command(
+    OUTPUT doxy_created
+    COMMAND ${DOXYGEN_EXECUTABLE} ${TOP_SRC_DIR}/sourcedoc/Doxyfile
+    COMMAND ${CMAKE_COMMAND} -E touch doxy_created
+    DEPENDS ${TOP_SRC_DIR}/sourcedoc/Doxyfile
+  )
+  add_custom_target(doxydoc DEPENDS doxy_created)
+endif()
+