set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})***就是这句,加上就行了。这样cmake就会到你自己工程目录下去找FindEigen3.cmake了。 find_package(Eigen3) if(NOT EIGEN3_FOUND) # Fallback to cmake_modules find_package(cmake_modules REQUIRED) find_package(Eigen REQUIRED) set(EIGEN3_INCLUD...
我去翻看了cmake官方文档,然后看到一篇文章才明白,cmake在find_package的时候需要提供对应模块的*.cmake文件,根据推测要么是cmake自己提供,显然不是,于是在我的qt安装目录下找到相应目录提供给cmake查找 在我的qt安装路径下的"/opt/Qt/5.12.3/gcc_64/lib/cmake"里面便可以找到提供给cmake的各个模块的文件夹,每...
ERROR message as: CMake Warning at CC/CMakeLists.txt:26 (message): CCLib configured without parallel algorithm capabilities - see COMPILE_CC_CORE_LIB_WITH_TBB CMake Error at cmake/CMakeExternalLibs.cmake:18 (find_package): By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PA...