Home>
/factorial
    +-CMakeLists.txt
    +-/ bin
    +-/ include
    | +-catch.hpp
    | +-fact.hpp
    | +-mylib.hpp
    +-/ src
    | +-CMakeLists.txt
    | +-fact.cpp
    +-/ library
    | +-CMakeLists.txt
    | +-mylib.cpp
    +-/ test
          +-CMakeLists.txt
          +-test_fact.cpp


When fact.cpp is edited on VSCode with the directory structure shown above, the include path is specified in CMakeLists.txt during compilation, so the fact.cpp include is set as follows: However, in this case, an error is detected on VSCode, and the code completion function will not work.
Can some settings solve this problem?


fact.cpp

#include "fact.hpp"
...

We are looking forward to your response.