mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-23 03:10:01 +08:00
350dcac032
Previous patch introduced a regression. The condition needs to be inverted. Fixed:https://github.com/ArthurSonzogni/FTXUI/issues/556
28 lines
546 B
CMake
28 lines
546 B
CMake
if (NOT FTXUI_BUILD_TESTS_FUZZER)
|
|
return()
|
|
endif()
|
|
|
|
set(CMAKE_C_COMPILER clang)
|
|
set(CMAKE_CXX_COMPILER clang++)
|
|
|
|
function(fuzz name)
|
|
add_executable(${name}
|
|
src/ftxui/component/${name}.cpp
|
|
)
|
|
target_include_directories(${name}
|
|
PRIVATE src
|
|
)
|
|
target_link_libraries(${name}
|
|
PRIVATE component
|
|
)
|
|
target_compile_options(${name}
|
|
PRIVATE -fsanitize=fuzzer,address
|
|
)
|
|
target_link_libraries(${name}
|
|
PRIVATE -fsanitize=fuzzer,address
|
|
)
|
|
endfunction(fuzz)
|
|
|
|
fuzz(terminal_input_parser_test_fuzzer)
|
|
fuzz(component_fuzzer)
|