find_package( Eigen3 REQUIRED ) include_directories( EIGEN3_INCLUDE_DIR ) I get next message of error: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VE...
首先,参考教程https://blog.csdn.net/bytxl/article/details/50637277得知,find_package是去CMAKE_MODULE_PATH中查找Findxxx.cmake文件,然后在这个文件提供的路径下去寻找相应的库。默认查找的路径示例如下(以编译 Sophus 库为例): find_path(EIGEN3_INCLUDE_DIRNAMESsignature_of_eigen3_matrix_libraryPATHS/usr/loc...
1. 找到 FindEigen3.cmake。也可以使用 locate FindEigen3.cmake 命令来查找。 2. 复制到项目文件夹下面,或者放在新建的cmake 文件夹内。 3. 修改项目 CMakeLists.txt。 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) //添加此句 find_package(Eigen3 REQUIRED) find_package(PCL REQUIRED) 1. ...
find_package(Eigen3${CERES_EIGEN_VERSION}QUIET) if(EIGEN3_FOUND) if(NOTEIGEN3_VERSION_STRINGVERSION_EQUALCERES_EIGEN_VERSION) #CMake's VERSION check in FIND_PACKAGE() will accept any version >= the Expand Down Expand Up@@ -444,7 +444,6 @@ dependencies. ...
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})//添加此句find_package(Eigen3 REQUIRED) find_package(PCL REQUIRED) 如果是放在新建的cmake文件夹下,则添加此句: set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) That's Done, then re catkin_make。
FIND_PACKAGE(Eigen3) I have the environent variable EIGEN3_INCLUDE_DIR set to /home/doriad/src/eigen When I run CMake, I get: -- Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "2.91.0") ...
PATH_SUFFIXES eigen3/HINTS${INCLUDE_INSTALL_DIR}/usr/local/include${KDE4_INCLUDE_DIR})#这个include作用是找到FindPackageHandleStandardArgs.cmake文件(这个文件在CMake中的Modules文件夹),使得find_package_handle_standard_args()该函数可用。#If a module file is specified, the include command will search...
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...
如果在使用CMake时出现了错误消息”By not providing “FindEigen3.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “Eigen3”, but CMake did not find one.“,这意味着CMake无法找到与Eigen3相关的配置文件。