aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples
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/examples
parentc38156a217c439e8cdd684556d03461955b9c012 (diff)
everything works, make now runs doxygen once and only once, after all
the required files have been generated.
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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)