aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-01-06 14:19:58 +0100
committerFelix Morgner <felix.morgner@gmail.com>2026-01-06 14:19:58 +0100
commit66e986572d65e622e78190aa971313ed7e3c8b9b (patch)
treed3bcdaf2eeb66da2d3898e037224c99c3ad426c1 /examples
parentd9ab9b52be6950f5429d9b9b4d3596599f53449d (diff)
downloadnewtype-develop.tar.xz
newtype-develop.zip
build: clean up configurationHEADdevelop
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt14
1 files changed, 3 insertions, 11 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index a25b061..c0834d3 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,14 +1,6 @@
-file(GLOB SOURCES
- RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
- CONFIGURE_DEPENDS
- "src/*.cpp"
-)
-
-foreach(EXAMPLE IN LISTS SOURCES)
- get_filename_component(NAME "${EXAMPLE}" NAME_WE)
- add_executable("ex_${NAME}" "${EXAMPLE}")
- target_link_libraries("ex_${NAME}" "newtype::lib")
-endforeach()
+newtype_add_example("src/basic_usage.cpp")
+newtype_add_example("src/basic_usage_with_show.cpp")
+newtype_add_example("src/basic_usage_with_read.cpp")
install(DIRECTORY "src/"
TYPE DOC