From 6d9d80362f9932bbc87e162b8ef7df06c73e27e1 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 7 Sep 2024 00:04:38 +0200 Subject: First commit --- examples/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/CMakeLists.txt (limited to 'examples/CMakeLists.txt') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..c182e37 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,10 @@ +function(nw_example example) + add_executable(nw_${example} ${example}.c) + target_link_libraries(nw_${example} PRIVATE ${PROJECT_NAME}) + install(TARGETS nw_${example}) + target_compile_options(nw_${example} PRIVATE ${sup_cflags}) +endfunction() + +nw_example(minimal) +nw_example(proc_exit) +nw_example(file) -- cgit v1.2.3