aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-12-21 11:29:04 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-12-21 11:29:04 +0000
commite9375836556a65b9cc5a55e49acdb823bc111a30 (patch)
treebf6fe3c8169e9228bece7e744111073855fcf4c9 /doc
parentc38156a217c439e8cdd684556d03461955b9c012 (diff)
everything works, make now runs doxygen once and only once, after all
the required files have been generated.
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt12
-rw-r--r--doc/Doxyfile.in4
-rw-r--r--doc/examples/CMakeLists.txt3
-rw-r--r--doc/snippets/CMakeLists.txt3
4 files changed, 20 insertions, 2 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 90228f071..39af38afe 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -5,7 +5,19 @@ CONFIGURE_FILE(
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
)
+SET(examples_targets "")
+SET(snippets_targets "")
+
ADD_SUBDIRECTORY(examples)
ADD_SUBDIRECTORY(snippets)
+ADD_CUSTOM_TARGET(
+ run_doxygen
+ ALL
+ COMMAND doxygen
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+ADD_DEPENDENCIES(run_doxygen all_snippets all_examples)
+
ENDIF(BUILD_DOC)
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
index 423a6eac6..4f0e4c200 100644
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -6,7 +6,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = Eigen
PROJECT_NUMBER = 2.0-alpha1
-OUTPUT_DIRECTORY = ${CMAKE_BINARY_DIR}
+OUTPUT_DIRECTORY = ${CMAKE_BINARY_DIR}/doc
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
BRIEF_MEMBER_DESC = YES
@@ -259,7 +259,7 @@ MSCGEN_PATH =
HIDE_UNDOC_RELATIONS = YES
HAVE_DOT = YES
CLASS_GRAPH = YES
-COLLABORATION_GRAPH = YES
+COLLABORATION_GRAPH = NO
GROUP_GRAPHS = YES
UML_LOOK = NO
TEMPLATE_RELATIONS = NO
diff --git a/doc/examples/CMakeLists.txt b/doc/examples/CMakeLists.txt
index 8ced15735..29cf078c1 100644
--- a/doc/examples/CMakeLists.txt
+++ b/doc/examples/CMakeLists.txt
@@ -1,5 +1,7 @@
FILE(GLOB examples_SRCS "*.cpp")
+ADD_CUSTOM_TARGET(all_examples)
+
FOREACH(example_src ${examples_SRCS})
GET_FILENAME_COMPONENT(example ${example_src} NAME_WE)
ADD_EXECUTABLE(${example} ${example_src})
@@ -11,4 +13,5 @@ ADD_CUSTOM_COMMAND(
COMMAND ${example_executable}
ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
)
+ADD_DEPENDENCIES(all_examples ${example})
ENDFOREACH(example_src)
diff --git a/doc/snippets/CMakeLists.txt b/doc/snippets/CMakeLists.txt
index 85503e03d..faf6440e8 100644
--- a/doc/snippets/CMakeLists.txt
+++ b/doc/snippets/CMakeLists.txt
@@ -1,5 +1,7 @@
FILE(GLOB snippets_SRCS "*.cpp")
+ADD_CUSTOM_TARGET(all_snippets)
+
FOREACH(snippet_src ${snippets_SRCS})
GET_FILENAME_COMPONENT(snippet ${snippet_src} NAME_WE)
SET(compile_snippet_target compile_${snippet})
@@ -17,4 +19,5 @@ ADD_CUSTOM_COMMAND(
COMMAND ${compile_snippet_executable}
ARGS >${CMAKE_CURRENT_BINARY_DIR}/${snippet}.out
)
+ADD_DEPENDENCIES(all_snippets ${compile_snippet_target})
ENDFOREACH(snippet_src)