Eigen

Eigen is useful library for Transformations. Nourish is currently trying to port it to QNX.

Eigen is a special library built with pure header files! This means you can only locate its header files, not binary files like .so or .a. When you use it, you only need to import Eigen’s header file. You don’t need to link the library file (because it doesn’t have any library files). Now let’s write a piece of code below to actually practice the use of Eigen.

Because the Eigen library only has header files, we don’t need to link the program to the library with the target_link_libraries statement.

CMake

find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})

Notice that we don’t need add_library nor target_link_libraries. This is because Eigen only has header files (no .cpp files), so we don’t need to link the program. You can just run them in the include