From 7339aeeae55671d176f7e008759d946630d0be72 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 5 Feb 2023 14:33:59 +0100 Subject: [PATCH] chore: Add platform-specific example targets Someone might want to build only the examples that work on non-POSIX, or the ones that work on POSIX. --- examples/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3865e2f..5b9b1dd 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -7,4 +7,6 @@ target_link_libraries(untar PRIVATE minitar) add_executable(pack EXCLUDE_FROM_ALL pack.c) target_link_libraries(pack PRIVATE minitar) -add_custom_target(examples DEPENDS list untar pack) \ No newline at end of file +add_custom_target(examples DEPENDS list untar pack) +add_custom_target(examples-posix DEPENDS list untar pack) +add_custom_target(examples-windows DEPENDS list) \ No newline at end of file