eigenpyConfig.cmake 435 Bytes
Newer Older
1
2
3
4
cmake_minimum_required(VERSION 2.8.3)

message(STATUS "Loading eigenpy from PkgConfig")

5
find_package(PkgConfig REQUIRED)
6
pkg_check_modules(eigenpy REQUIRED eigenpy)
7
8
9
10
11
12
13
14

# find absolute library paths for all eigenpy_LIBRARIES
set(libs ${eigenpy_LIBRARIES})
set(eigenpy_LIBRARIES "")
foreach(lib ${libs})
  find_library(abs_lib_${lib} ${lib} HINTS ${eigenpy_LIBRARY_DIRS})
  list(APPEND eigenpy_LIBRARIES "${abs_lib_${lib}}")
endforeach()