-
Notifications
You must be signed in to change notification settings - Fork 28
/
CMakeLists.txt
55 lines (46 loc) · 1.56 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
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright (C) 2018 Istituto Italiano di Tecnologia (IIT). All rights reserved.
# This software may be modified and distributed under the terms of the
# GNU Lesser General Public License v2.1 or any later version.
find_package(IWear REQUIRED)
find_package(iDynTree REQUIRED)
find_package(OsqpEigen 0.4.0 REQUIRED)
yarp_prepare_plugin(human_state_provider
TYPE hde::devices::HumanStateProvider
INCLUDE HumanStateProvider.h
CATEGORY device
ADVANCED
DEFAULT ON)
yarp_add_plugin(HumanStateProvider
HumanStateProvider.cpp
HumanStateProvider.h
IKWorkerPool.cpp
IKWorkerPool.h
InverseVelocityKinematics/InverseVelocityKinematics.cpp
InverseVelocityKinematics/InverseVelocityKinematics.hpp)
target_include_directories(HumanStateProvider PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
SYSTEM PRIVATE ${EIGEN3_INCLUDE_DIR})
target_link_libraries(HumanStateProvider PUBLIC
IHumanState
YARP::YARP_OS
YARP::YARP_dev
YARP::YARP_init
IWear::IWear
iDynTree::idyntree-model
iDynTree::idyntree-inverse-kinematics
iDynTree::idyntree-high-level
UtilityLibrary
OsqpEigen::OsqpEigen
osqp::osqp
)
if(MSVC)
target_compile_options(HumanStateProvider PRIVATE /bigobj)
endif()
yarp_install(
TARGETS HumanStateProvider
COMPONENT runtime
LIBRARY DESTINATION ${YARP_DYNAMIC_PLUGINS_INSTALL_DIR}
ARCHIVE DESTINATION ${YARP_STATIC_PLUGINS_INSTALL_DIR})
yarp_install(
FILES "${CMAKE_CURRENT_SOURCE_DIR}/conf/human_state_provider.ini"
DESTINATION ${YARP_PLUGIN_MANIFESTS_INSTALL_DIR})