-
Notifications
You must be signed in to change notification settings - Fork 38
/
CMakeLists.txt
39 lines (33 loc) · 1.97 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
# Copyright (C) 2020 Istituto Italiano di Tecnologia (IIT). All rights reserved.
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license.
# set target name
if(FRAMEWORK_COMPILE_YarpUtilities)
set(YarpUtilities_Ros1Publisher_PUBLIC_HEADERS "")
set(YarpUtilities_Ros1Publisher_SOURCES "")
if(FRAMEWORK_COMPILE_Ros1Publisher)
list(APPEND YarpUtilities_Ros1Publisher_PUBLIC_HEADERS "include/BipedalLocomotion/YarpUtilities/RosPublisher.h")
list(APPEND YarpUtilities_Ros1Publisher_SOURCES "src/RosPublisher.cpp")
endif()
add_bipedal_locomotion_library(
NAME YarpUtilities
SOURCES src/Helper.cpp ${YarpUtilities_Ros1Publisher_SOURCES}
PUBLIC_HEADERS include/BipedalLocomotion/YarpUtilities/Helper.h include/BipedalLocomotion/YarpUtilities/Helper.tpp ${YarpUtilities_Ros1Publisher_PUBLIC_HEADERS}
PUBLIC_LINK_LIBRARIES ${YARP_LIBRARIES} ${iDynTree_LIBRARIES} BipedalLocomotion::GenericContainer BipedalLocomotion::ParametersHandler BipedalLocomotion::TextLogging
SUBDIRECTORIES tests)
add_bipedal_locomotion_yarp_thrift(
NAME VectorsCollectionMsg
THRIFT thrifts/BipedalLocomotion/YarpUtilities/VectorsCollection.thrift
INSTALLATION_FOLDER YarpUtilities)
add_bipedal_locomotion_library(
NAME VectorsCollection
SOURCES src/VectorsCollectionServer.cpp src/VectorsCollectionClient.cpp
PUBLIC_HEADERS include/BipedalLocomotion/YarpUtilities/VectorsCollectionServer.h include/BipedalLocomotion/YarpUtilities/VectorsCollectionClient.h
PUBLIC_LINK_LIBRARIES ${YARP_LIBRARIES}
${iDynTree_LIBRARIES}
BipedalLocomotion::VectorsCollectionMsg
BipedalLocomotion::GenericContainer
BipedalLocomotion::ParametersHandler
BipedalLocomotion::TextLogging
INSTALLATION_FOLDER YarpUtilities)
endif()