CLion "This file does not belong to any project target" 添加到 cmake 时
CLion "This file does not belong to any project target" when added to cmake
我想查看 CLion 中 OSRM 的代码库,但代码洞察功能不起作用。我认为 CLion 只需要在 cmake 中添加文件即可提供见解。
头文件根目录也包含在内
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include/)
在我解决依赖关系时修复,以便 cmake 运行 没有错误。 (但不知道 clion 究竟是如何使用 CMakeLists.txt 文件的,如果我知道的话,它可能是显而易见的)
我想查看 CLion 中 OSRM 的代码库,但代码洞察功能不起作用。我认为 CLion 只需要在 cmake 中添加文件即可提供见解。
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include/)
在我解决依赖关系时修复,以便 cmake 运行 没有错误。 (但不知道 clion 究竟是如何使用 CMakeLists.txt 文件的,如果我知道的话,它可能是显而易见的)