Fuzzing: remove the libCheck dependency
Description
Fuzzing currently requires libCheck to be present while it does not use it (the option ENABLE_TESTING
does require check, and the fuzz is inside a if(ENABLE_TESTING)
).
(OSS-Fuzz does not support building the version 0.14 of check as it requires a newer CMake.)
Proposed implementation
- Move the fuzzing outside of the
ENABLE_TESTING
if. - Create a
ENABLE_FUZZING
option (OFF by default ?). - not sure:
ENABLE_TESTING=ON
setsENABLE_FUZZING=ON
- optional/not sure:
WITH_OSS_FUZZ
setsENABLE_TESTING=OFF
andENABLE_FUZZING=ON
. It could eventually also setS2OPC_CLIENTSERVER_ONLY=ON
. This behavior could allow us to set options for OSS-Fuzz without having to do a pull-request to their repo (to modifybuild.sh
cmake arguments).
Edited by Paul Luperini