diff --git a/source/RobotAPI/components/EarlyVisionGraph/CMakeLists.txt b/source/RobotAPI/components/EarlyVisionGraph/CMakeLists.txt index b12677c3ff545b9d18e7e11b95d2197c36434dd1..74379c85c87b7e6bdd6619c9af2c44f7962b35ce 100644 --- a/source/RobotAPI/components/EarlyVisionGraph/CMakeLists.txt +++ b/source/RobotAPI/components/EarlyVisionGraph/CMakeLists.txt @@ -3,6 +3,10 @@ armarx_component_set_name("EarlyVisionGraph") find_package(Eigen3 QUIET) armarx_build_if(Eigen3_FOUND "Eigen3 not available") +set(COMPONENT_LIBS + Eigen3::Eigen +) + set(SOURCES ./MathTools.cpp ./SphericalGraph.cpp @@ -26,6 +30,5 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 ") armarx_add_component("${SOURCES}" "${HEADERS}") if(Eigen3_FOUND) - target_include_directories(EarlyVisionGraph SYSTEM PUBLIC ${Eigen3_INCLUDE_DIR}) + target_include_directories(EarlyVisionGraph SYSTEM PUBLIC ${Eigen3_INCLUDE_DIRS}) endif() -