forked from robotology/idyntree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiDynTreeConfig.cmake.in
36 lines (30 loc) · 1.08 KB
/
iDynTreeConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
set(iDynTree_VERSION @iDynTree_VERSION@)
@PACKAGE_INIT@
if(NOT TARGET iDynTree::idyntree-core)
include("${CMAKE_CURRENT_LIST_DIR}/iDynTreeTargets.cmake")
endif()
if(TARGET iDynTree::idyntree-kdl)
find_package(orocos_kdl QUIET)
#support also for the old version of kdl cmake package
if(NOT orocos_kdl_FOUND)
find_package(Orocos-KDL QUIET)
if(NOT Orocos-KDL_FOUND)
message(WARNING "KDL not found: neither orocos_kdl or Orocos-KDL cmake packages are available")
else()
set(orocos_kdl_INCLUDE_DIRS ${Orocos-KDL_INCLUDE_DIRS})
set(orocos_kdl_LIBRARY_DIRS ${Orocos-KDL_LIBRARY_DIRS})
set(orocos_kdl_LIBRARIES ${Orocos-KDL_LIBRARIES})
set(orocos_kdl_FOUND true)
endif()
endif()
find_package(TinyXML QUIET)
endif()
if(TARGET iDynTree::idyntree-yarp)
find_package(YARP QUIET)
endif()
if(TARGET iDynTree::idyntree-icub)
find_package(ICUB QUIET)
endif()
# Provide an iDynTree_LIBRARIES variable containing all the
# targets exported by iDynTree
set(iDynTree_LIBRARIES "@iDynTree_TARGETS@")