-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (31 loc) · 1.66 KB
/
CMakeLists.txt
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
37
38
39
40
41
42
43
################################################################################
# #
# Copyright (C) 2021 Fondazione Istitito Italiano di Tecnologia (IIT) #
# All Rights Reserved. #
# #
################################################################################
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 17)
project(fkin)
find_package(ICUBcontrib REQUIRED)
find_package(YARP REQUIRED COMPONENTS os sig math)
find_package(ICUB REQUIRED COMPONENTS ctrlLib iKin)
find_package(iDynTree REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
include(ICUBcontribHelpers)
include(ICUBcontribOptions)
icubcontrib_set_default_prefix()
add_executable(${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME} PRIVATE YARP::YARP_os
YARP::YARP_sig
YARP::YARP_math
ICUB::ctrlLib
ICUB::iKin
${iDynTree_LIBRARIES})
target_sources(${PROJECT_NAME} PRIVATE src/main.cpp
src/fkinModule.cpp
src/fkinModule.h)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
file(GLOB urdf ${CMAKE_CURRENT_SOURCE_DIR}/model/model.urdf)
yarp_install(FILES ${urdf} DESTINATION ${ICUBCONTRIB_ROBOTS_INSTALL_DIR}/icubGazeboSim)
icubcontrib_add_uninstall_target()