code-intelligence.com/cifuzz@v0.40.0/docs/Troubleshooting.md (about)

     1  # Troubleshooting
     2  
     3  ## Cifuzz headers not found in CMake project
     4  
     5  If you encounter the following error message in your CMake project:
     6  
     7  ```
     8  fatal error: 'cifuzz/cifuzz.h' file not found
     9  #include <cifuzz/cifuzz.h>
    10           ^~~~~~~~~~~~~~~~~
    11  ```
    12  
    13  You can try including the cifuzz directory explicitly to the fuzz test
    14  declaration in your `CMakeLists.txt` with a `target_include_directories` directive.
    15  
    16  ```
    17  add_fuzz_test(my_fuzz_test my_fuzz_test.cpp)
    18  target_link_libraries(my_fuzz_test PRIVATE exploreMe)
    19  target_include_directories(my_fuzz_test PUBLIC $ENV{HOME}/.local/share/cifuzz/include)
    20  ```