2024-05-27 14:19:48 +00:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
|
|
|
|
find_package(Sanitizers)
|
2017-11-27 20:48:33 +00:00
|
|
|
|
2021-04-30 14:49:15 +00:00
|
|
|
# tests
|
|
|
|
set(test_write_out test_write.out)
|
|
|
|
add_executable(${test_write_out} test_write.c)
|
|
|
|
target_link_libraries(${test_write_out} zip)
|
|
|
|
add_test(NAME ${test_write_out} COMMAND ${test_write_out})
|
2024-05-27 14:19:48 +00:00
|
|
|
add_sanitizers(${test_write_out})
|
2019-11-19 19:30:40 +00:00
|
|
|
|
2021-04-30 14:49:15 +00:00
|
|
|
set(test_append_out test_append.out)
|
|
|
|
add_executable(${test_append_out} test_append.c)
|
|
|
|
target_link_libraries(${test_append_out} zip)
|
|
|
|
add_test(NAME ${test_append_out} COMMAND ${test_append_out})
|
2024-05-27 14:19:48 +00:00
|
|
|
add_sanitizers(${test_append_out})
|
2019-11-19 19:30:40 +00:00
|
|
|
|
2021-04-30 14:49:15 +00:00
|
|
|
set(test_read_out test_read.out)
|
|
|
|
add_executable(${test_read_out} test_read.c)
|
|
|
|
target_link_libraries(${test_read_out} zip)
|
|
|
|
add_test(NAME ${test_read_out} COMMAND ${test_read_out})
|
2024-05-27 14:19:48 +00:00
|
|
|
add_sanitizers(${test_read_out})
|
2017-11-27 20:48:33 +00:00
|
|
|
|
2021-04-30 14:49:15 +00:00
|
|
|
set(test_extract_out test_extract.out)
|
|
|
|
add_executable(${test_extract_out} test_extract.c)
|
|
|
|
target_link_libraries(${test_extract_out} zip)
|
|
|
|
add_test(NAME ${test_extract_out} COMMAND ${test_extract_out})
|
2024-05-27 14:19:48 +00:00
|
|
|
add_sanitizers(${test_extract_out})
|
2021-04-30 14:49:15 +00:00
|
|
|
|
|
|
|
set(test_entry_out test_entry.out)
|
|
|
|
add_executable(${test_entry_out} test_entry.c)
|
|
|
|
target_link_libraries(${test_entry_out} zip)
|
|
|
|
add_test(NAME ${test_entry_out} COMMAND ${test_entry_out})
|
2024-05-27 14:19:48 +00:00
|
|
|
add_sanitizers(${test_entry_out})
|
2021-04-30 14:49:15 +00:00
|
|
|
|
|
|
|
set(test_permissions_out test_permissions.out)
|
|
|
|
add_executable(${test_permissions_out} test_permissions.c)
|
|
|
|
target_link_libraries(${test_permissions_out} zip)
|
|
|
|
add_test(NAME ${test_permissions_out} COMMAND ${test_permissions_out})
|
2024-05-27 14:19:48 +00:00
|
|
|
add_sanitizers(${test_permissions_out})
|
|
|
|
|
|
|
|
set(test_open_out test_open.out)
|
|
|
|
add_executable(${test_open_out} test_open.c)
|
|
|
|
target_link_libraries(${test_open_out} zip)
|
|
|
|
add_test(NAME ${test_open_out} COMMAND ${test_open_out})
|
|
|
|
add_sanitizers(${test_open_out})
|