]> The Tcpdump Group git mirrors - libpcap/blob - testprogs/fuzz/CMakeLists.txt
Fix typos in some comments
[libpcap] / testprogs / fuzz / CMakeLists.txt
1 add_executable(fuzz_pcap onefile.c fuzz_pcap.c)
2 target_link_libraries(fuzz_pcap ${ARGN} ${LIBRARY_NAME}_static ${PCAP_LINK_LIBRARIES})
3 if(NOT "${SANITIZER_FLAGS}" STREQUAL "")
4 set_target_properties(fuzz_pcap PROPERTIES
5 LINK_FLAGS "${SANITIZER_FLAGS}")
6 endif()
7
8 add_executable(fuzz_filter onefile.c fuzz_filter.c)
9 target_link_libraries(fuzz_filter ${ARGN} ${LIBRARY_NAME}_static ${PCAP_LINK_LIBRARIES})
10 if(NOT "${SANITIZER_FLAGS}" STREQUAL "")
11 set_target_properties(fuzz_filter PROPERTIES
12 LINK_FLAGS "${SANITIZER_FLAGS}")
13 endif()
14
15 add_executable(fuzz_both onefile.c fuzz_both.c)
16 target_link_libraries(fuzz_both ${ARGN} ${LIBRARY_NAME}_static ${PCAP_LINK_LIBRARIES})
17 if(NOT "${SANITIZER_FLAGS}" STREQUAL "")
18 set_target_properties(fuzz_both PROPERTIES
19 LINK_FLAGS "${SANITIZER_FLAGS}")
20 endif()