forked from ros-naoqi/naoqi_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
118 lines (104 loc) · 2.29 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
cmake_minimum_required(VERSION 2.8.3)
project(naoqi_driver)
# define source files that can be used by qibuild or catkin
set(
CONVERTERS_SRC
src/converters/audio.cpp
src/converters/touch.cpp
src/converters/camera.cpp
src/converters/diagnostics.cpp
src/converters/imu.cpp
src/converters/info.cpp
src/converters/joint_state.cpp
src/converters/laser.cpp
src/converters/memory_list.cpp
src/converters/memory/bool.cpp
src/converters/memory/int.cpp
src/converters/memory/float.cpp
src/converters/memory/string.cpp
src/converters/sonar.cpp
src/converters/log.cpp
src/converters/odom.cpp
)
set(
TOOLS_SRC
src/tools/robot_description.cpp
src/tools/from_any_value.cpp
)
set(
PUBLISHER_SRC
src/publishers/camera.cpp
src/publishers/info.cpp
src/publishers/joint_state.cpp
src/publishers/log.cpp
src/publishers/sonar.cpp
)
set(
SUBSCRIBER_SRC
src/subscribers/teleop.cpp
src/subscribers/moveto.cpp
src/subscribers/speech.cpp
)
set(
SERVICES_SRC
src/services/robot_config.cpp
)
set(
RECORDER_SRC
src/recorder/camera.cpp
src/recorder/diagnostics.cpp
src/recorder/joint_state.cpp
src/recorder/log.cpp
src/recorder/sonar.cpp
)
set(
DRIVER_SRC
src/naoqi_driver.cpp
src/helpers/driver_helpers.cpp
src/recorder/globalrecorder.cpp
src/event/basic.hxx
src/event/basic.hpp
src/event/audio.cpp
src/event/touch.cpp
)
# use catkin if qibuild is not found
if(DEFINED qibuild_DIR)
find_package(qibuild QUIET)
else()
find_package(catkin QUIET)
include(CMakeLists_catkin.txt)
return()
endif()
find_package(qimodule)
include_directories( include )
qi_create_module(
naoqi_driver_module
src/autoload_registration.cpp
SHARED
)
qi_stage_lib( naoqi_driver_module )
qi_create_lib(
naoqi_driver
SHARED
${DRIVER_SRC}
${CONVERTERS_SRC}
${PUBLISHER_SRC}
${SUBSCRIBER_SRC}
${SERVICES_SRC}
${RECORDER_SRC}
${TOOLS_SRC}
)
qi_use_lib( naoqi_driver QICORE QI ROS )
qi_stage_lib( naoqi_driver )
target_link_libraries(
naoqi_driver_module
naoqi_driver
)
qi_create_bin( naoqi_driver_node src/external_registration.cpp)
target_link_libraries(
naoqi_driver_node
naoqi_driver
)
# install the urdf for runtime loading
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/share/" DESTINATION "${QI_SDK_DIR}/${QI_SDK_SHARE}/")
qi_install_data( share/)