| add_executable(${name} ../${fuzzer}) |
| 7 | target_compile_options(${name} PRIVATE "-Wno-missing-prototypes") |
| 8 | target_link_libraries(${name} ssl pki crypto) |
| 9 | if(LIBFUZZER_FROM_DEPS) |
| 10 | set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=fuzzer-no-link") |
| 11 | target_link_libraries(${name} Fuzzer) |
| 12 | else() |
| 13 | set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=fuzzer") |
| 14 | endif() |
| 15 | set_target_properties( |
| 16 | ${name} |
| 17 | PROPERTIES |
| 18 | CXX_STANDARD 17 |
| 19 | CXX_STANDARD_REQUIRED YES) |
| 20 | endforeach() |
| 21 |