mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
Add infrastructure for building fuzz testing targets with libFuzzer or other fuzzing engines (e.g., OSS-Fuzz's LIB_FUZZING_ENGINE). Features: - CMake_BUILD_FUZZING option in root CMakeLists.txt - Fuzzing/CMakeLists.txt with add_fuzzer() macro - Support for libFuzzer and external fuzzing engines - Documentation in Tests/Fuzzing/README.rst The infrastructure is opt-in and requires a compatible fuzzing engine. If CMake_BUILD_FUZZING is enabled but no engine is found, configuration fails with a clear error message. See Tests/Fuzzing/README.rst for build instructions.
13 lines
171 B
CMake
13 lines
171 B
CMake
set(X 5)
|
|
if(X GREATER 3)
|
|
message("X > 3")
|
|
elseif(X EQUAL 3)
|
|
message("X == 3")
|
|
else()
|
|
message("X < 3")
|
|
endif()
|
|
|
|
foreach(i RANGE 3)
|
|
message("i = ${i}")
|
|
endforeach()
|