Cannot include header from library
Here is the compiler error:
/home/martin/ros2_ws/src/acrobat_packages/acrobat_common/include/acrobat_common/geometry/lie_groups.hpp:3:10: fatal error: 'sophus/se3.hpp' file not found
#include <sophus/se3.hpp>
^~~~~~~~~~~~~~~~
This is in my package.xml
<build_depend>Sophus</build_depend>
In my CMakeLists.txt
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(Sophus REQUIRED)
add_library(${PROJECT_NAME} src/maffs.cpp)
target_include_directories(${PROJECT_NAME}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
ament_target_dependencies(${PROJECT_NAME} Sophus)
add a comment