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.
This commit is contained in:
apio 2023-02-05 14:33:59 +01:00
parent 40302ddd41
commit 7339aeeae5
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -7,4 +7,6 @@ target_link_libraries(untar PRIVATE minitar)
add_executable(pack EXCLUDE_FROM_ALL pack.c) add_executable(pack EXCLUDE_FROM_ALL pack.c)
target_link_libraries(pack PRIVATE minitar) target_link_libraries(pack PRIVATE minitar)
add_custom_target(examples DEPENDS list untar pack) add_custom_target(examples DEPENDS list untar pack)
add_custom_target(examples-posix DEPENDS list untar pack)
add_custom_target(examples-windows DEPENDS list)