Split fuzz tests during fuzz build

Only build fuzz tests in a fuzz build, and don't build other tests.

Keeps fuzz compilers from instrumenting other tests, which are not fuzzed.

Resolves #7232
This commit is contained in:
Nym Seddon 2020-12-31 23:28:22 +00:00 committed by wowario
parent 7dff3540f0
commit 66f7ea2dbf
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -80,6 +80,9 @@ file(COPY
data/signed_monero_tx
DESTINATION data)
if (CMAKE_BUILD_TYPE STREQUAL "fuzz" OR OSSFUZZ)
add_subdirectory(fuzz)
else ()
add_subdirectory(core_tests)
add_subdirectory(fuzz)
add_subdirectory(crypto)
@ -91,6 +94,8 @@ add_subdirectory(difficulty)
add_subdirectory(block_weight)
add_subdirectory(hash)
add_subdirectory(net_load_tests)
endif()
if (BUILD_GUI_DEPS)
add_subdirectory(libwallet_api_tests)
endif()