summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2018-01-19 00:15:52 +0100
committerRalf Habacker <[email protected]>2018-01-27 14:04:16 +0100
commitcfe2f4b7e7312a27795ff75e038eea2574644dbc (patch)
treefc2c6cc1533c562b2c93d40a6084a4d67ef4fb03
parentee85974d6ef0f0162f9f6bd821de20df17bf59cf (diff)
Add cmake target 'apidoc' for generating doxygen based api doc
-rw-r--r--CMakeLists.txt8
-rw-r--r--Doxyfile8
2 files changed, 12 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 940617b..5d75f53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -323,6 +323,14 @@ add_unstable_feature(XMIRESOLUTION) # see https://bugs.kde.org/show_bug.cgi?id=9
# because of using umbrello specific XMI tag (UML:InstanceAttribute).
add_unstable_feature(OBJECT_DIAGRAM) # see https://bugs.kde.org/show_bug.cgi?id=123633
+configure_file(Doxyfile ${CMAKE_BINARY_DIR}/Doxyfile)
+find_program(DOXYGEN_EXECUTABLE doxygen)
+if(DOXYGEN_EXECUTABLE)
+ add_custom_target(apidoc
+ COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
+ )
+endif()
+
if(LIBXSLT_FOUND AND LIBXML2_FOUND)
add_subdirectory(umbrello)
add_subdirectory(doc)
diff --git a/Doxyfile b/Doxyfile
index feea33a..5769f05 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -5,8 +5,8 @@
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = umbrello
-PROJECT_NUMBER = trunk
-OUTPUT_DIRECTORY = /home/kde-devel/src/KDE/kdesdk/umbrello-doc/
+PROJECT_NUMBER = @[email protected]
+OUTPUT_DIRECTORY = @[email protected]/apidoc
CREATE_SUBDIRS = YES
OUTPUT_LANGUAGE = English
BRIEF_MEMBER_DESC = YES
@@ -25,7 +25,7 @@ ABBREVIATE_BRIEF = "The $name class" \
ALWAYS_DETAILED_SEC = NO
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = YES
-STRIP_FROM_PATH = /home/kde-devel/src/KDE/kdesdk/
+STRIP_FROM_PATH = @[email protected]
STRIP_FROM_INC_PATH =
SHORT_NAMES = NO
JAVADOC_AUTOBRIEF = NO
@@ -94,7 +94,7 @@ WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
-INPUT = /home/kde-devel/src/KDE/kdesdk/umbrello/
INPUT_ENCODING = UTF-8
FILE_PATTERNS = *.c \
*.cc \