aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples
diff options
context:
space:
mode:
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)