1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Build examples as part of `make all`
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: Wed, 18 Oct 2023 13:09:05 +0300
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e11652c..1861ab1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -305,6 +305,7 @@ message(STATUS "example programs: ${EXAMPLE_TARGETS}")
add_custom_target(examples)
if (EXAMPLE_TARGETS)
add_dependencies(examples ${EXAMPLE_TARGETS})
+ set_property(TARGET examples PROPERTY EXCLUDE_FROM_ALL FALSE)
endif ()
add_custom_target(wrappers DEPENDS ${GENERATED_DIR})
|