aboutsummaryrefslogtreecommitdiff
path: root/fuzzers
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-12 16:15:16 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-12 16:22:12 -0400
commit3da5b6082373514e828d4a943de6305eb34d446b (patch)
treea7d41073180e51253fe60a2d705c5e26062e298c /fuzzers
parent4e94dfc7e057776b0d1aafbeb72c8dad7918d988 (diff)
add pk files to cmake, avoid some duplication, and update documentation
Diffstat (limited to 'fuzzers')
-rw-r--r--fuzzers/CMakeLists.txt30
1 files changed, 11 insertions, 19 deletions
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)