也有少数第三方库为了方便,还支持作为子项目加到你的项目中来,这种就不需要 :: 语法。 标准方法: find_package(spdlog REQUIRED) target_link_libraries(yourapp PUBLIC spdlog::spdlog) 邪教方法: add_subdirectory(spdlog) # 需要下载好他们的源码放到你的根目录下 target_link_libraries(yourapp PUBLIC spdlog)...
I installed it with brew install spdlog and typed in my CMakeLists.txt find_package(spdlog CONFIG REQUIRED) but it doesn't find it. I get this error message Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir: /Library/...
当你在编译或配置过程中遇到“could not find a package configuration file provided by 'spdlog' with any of”这样的错误时,通常意味着CMake无法找到spdlog库的配置文件。以下是解决此问题的一些步骤: 确认spdlog库是否已安装: 首先,你需要确认spdlog库是否已经在你的系统上安装。你可以通过以下命令来检查(以Linux...
${TooN_INCLUDE_DIRS} ${spdlog_INCLUDE_DIRS} ${LAPACK_INCLUDE_DIRS} ) include_directories( include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${TooN_INCLUDE_DIRS} ${spdlog_INCLUDE_DIRS} ${LAPACK_INCLUDE_DIRS} ) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16...
set(CMAKE_CXX_STANDARD14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES"Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() # find dependencies find_package(yaml-cpp REQUIRED) find_package(spdlog REQUIRED) ...
target_link_libraries(honeybee ${Boost_LIBRARIES} ${Ice_LIBRARIES} simdjson::simdjson unofficial::sqlite3::sqlite3 unordered_dense::unordered_dense croncpp::croncpp spdlog::spdlog) Configure your project. CMake should give the following error: "Failed to find all Ice components (missing: Ice_...
set(CMAKE_CXX_STANDARD14) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES"Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() # find dependencies find_package(yaml-cpp REQUIRED) find_package(spdlog REQUIRED) ...