From e9375836556a65b9cc5a55e49acdb823bc111a30 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 21 Dec 2007 11:29:04 +0000 Subject: everything works, make now runs doxygen once and only once, after all the required files have been generated. --- doc/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/CMakeLists.txt') 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) -- cgit v1.2.3