Debian Codegraph @

fuzz/CMakeLists.txt

raw
1 include_directories(
2 ${LIBRABBITMQ_INCLUDE_DIRS}
3 ${CMAKE_CURRENT_BINARY_DIR}/../librabbitmq/
4 ${CMAKE_CURRENT_SOURCE_DIR}/../librabbitmq/)
5
6 add_definitions(-DHAVE_CONFIG_H)
7 add_definitions(-DAMQP_STATIC)
8
9 SET(CMAKE_EXE_LINKER_FLAGS "${LIB_FUZZING_ENGINE}")
10
11 if(BUILD_OSSFUZZ)
12 add_executable(fuzz_url fuzz_url.c)
13 target_link_libraries(fuzz_url rabbitmq-static)
14
15 add_executable(fuzz_table fuzz_table.c)
16 target_link_libraries(fuzz_table rabbitmq-static)
17
18 add_executable(fuzz_server fuzz_server.c)
19 target_link_libraries(fuzz_server rabbitmq-static)
20
21 add_executable(fuzz_method_decode fuzz_method_decode.c)
22 target_link_libraries(fuzz_method_decode rabbitmq-static)
23
24 add_executable(fuzz_properties_decode fuzz_properties_decode.c)
25 target_link_libraries(fuzz_properties_decode rabbitmq-static)
26
27 add_executable(fuzz_handle_input fuzz_handle_input.c)
28 target_link_libraries(fuzz_handle_input rabbitmq-static)
29
30 add_executable(fuzz_codec fuzz_codec.c)
31 target_link_libraries(fuzz_codec rabbitmq-static)
32 endif ()