

So, I need to specify where to find these Eigen header files.

It is important to understand that the extension of your header file doesnt matter.
CMAKE GLOB CODE
Moveit::planning_interface::MoveGroup group("right_arm") īut compiling this gives me the error: /opt/ros/indigo/include/moveit/robot_model/joint_model.h:47: error: Eigen/Geometry: No such file or directory The CMake doc says about the command file GLOB: We do not recommend using GLOB to collect a list of source files from your source tree. Including header files in your code will allow you to compile the code. It was added by popular demand for those willing to accept the trade-offs. The documentation specifically recommends against globbing for source files. See issues linked from that MR for details. First we can specify the directories of header files by includedirectories(), then we need to specify the corresponding source files of the target. This project contains two source files located in the src directory and one header file in the include directory in the same directory. The macro first computes the path of the source file relative to the. For reference, the file (GLOB) option CONFIGUREDEPENDS was added by CMake MR 1767 in CMake 3.12. However, I am confused as to what I need to have in my CMakeLists.txt file, such that the header and library files can be found.įor example, here is the file so far: cmake_minimum_required(VERSION 2.8.1) The macro can then be called in all the project CMake list files to add sources.
GLOBRECURSE mode of file() (cmake -help-command file) and > getfilenamecomponent. For dependencies that provide package-config file or a find-module file (It does the following: Creates a CMake project with N sources, explicitly listed Builds that project Runs a no-op build on that project, records time spent Repeats the above steps with a CONFIGUREDEPENDS glob in place of the explicit. I am new to ROS (Indigo), and I want to write a C++ program to use the MoveIt! package. List: cmake Subject: Re: CMake Recursively add directories to. This is a Python script for testing CMake glob overhead on an N file flat directory.
