diff --git a/test/fuzz/CMakeLists.txt b/test/fuzz/CMakeLists.txt
index c3ff4b41b34097d9ad6bda068b3134136e141081..94b4987b99fde7bb29333d09ed08874180e94425 100644
--- a/test/fuzz/CMakeLists.txt
+++ b/test/fuzz/CMakeLists.txt
@@ -11,6 +11,10 @@ target_compile_options(
     INTERFACE
         $<$<NOT:$<BOOL:${OSS_FUZZ}>>:
         -fsanitize=fuzzer
+        -fsanitize-coverage=trace-cmp
+        -fprofile-instr-generate
+        -fcoverage-mapping
+        -g
         >
         $<$<BOOL:${OSS_FUZZ}>:
         ${CXX}
@@ -22,6 +26,10 @@ target_link_libraries(
     INTERFACE
         $<$<NOT:$<BOOL:${OSS_FUZZ}>>:
         -fsanitize=fuzzer
+        -fsanitize-coverage=trace-cmp
+        -fprofile-instr-generate
+        -fcoverage-mapping
+        -g
         >
         $<$<BOOL:${OSS_FUZZ}>:
         $ENV{LIB_FUZZING_ENGINE}