From 3da5b6082373514e828d4a943de6305eb34d446b Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 12 Oct 2018 16:15:16 -0400 Subject: add pk files to cmake, avoid some duplication, and update documentation --- fuzzers/CMakeLists.txt | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'fuzzers') diff --git a/fuzzers/CMakeLists.txt b/fuzzers/CMakeLists.txt index ec95b59..365e45b 100644 --- a/fuzzers/CMakeLists.txt +++ b/fuzzers/CMakeLists.txt @@ -1,19 +1,11 @@ -add_executable(fuzz_decode_message fuzz_decode_message.cpp) -target_include_directories(fuzz_decode_message PRIVATE include) -target_link_libraries(fuzz_decode_message Olm::Olm) - -add_executable(fuzz_decrypt fuzz_decrypt.cpp) -target_include_directories(fuzz_decrypt PRIVATE include) -target_link_libraries(fuzz_decrypt Olm::Olm) - -add_executable(fuzz_group_decrypt fuzz_group_decrypt.cpp) -target_include_directories(fuzz_group_decrypt PRIVATE include) -target_link_libraries(fuzz_group_decrypt Olm::Olm) - -add_executable(fuzz_unpickle_account fuzz_unpickle_account.cpp) -target_link_libraries(fuzz_unpickle_account Olm::Olm) -target_include_directories(fuzz_unpickle_account PRIVATE include) - -add_executable(fuzz_unpickle_session fuzz_unpickle_session.cpp) -target_link_libraries(fuzz_unpickle_session Olm::Olm) -target_include_directories(fuzz_unpickle_session PRIVATE include) +foreach(fuzz IN ITEMS + fuzz_decode_message + fuzz_decrypt + fuzz_group_decrypt + fuzz_unpickle_account + fuzz_unpickle_session + ) +add_executable(${fuzz} ${fuzz}.cpp) +target_include_directories(${fuzz} PRIVATE include) +target_link_libraries(${fuzz} Olm::Olm) +endforeach(fuzz) -- cgit v1.2.3