Description: Build examples as part of `make all` Author: Nicholas Guriev 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})