forked from ros-naoqi/naoqi_dcm_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (55 loc) · 1.35 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
cmake_minimum_required(VERSION 2.8.3)
project(naoqi_dcm_driver)
set(projectName
naoqi_dcm_driver
)
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
tf
hardware_interface
controller_manager
sensor_msgs
naoqi_libqi
naoqi_libqicore
diagnostic_msgs
diagnostic_updater
)
find_package(Boost REQUIRED)
add_definitions(-DLIBQI_VERSION=${naoqi_libqi_VERSION_MAJOR}${naoqi_libqi_VERSION_MINOR})
#Needed for ros packages
catkin_package()
catkin_package(CATKIN_DEPENDS roscpp geometry_msgs tf std_msgs sensor_msgs hardware_interface controller_manager)
include_directories(include
${catkin_INCLUDE_DIRS}
${NAOqi_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
add_executable(${projectName}
src/robot_driver.cpp
src/robot.cpp
src/tools.cpp
src/diagnostics.cpp
src/memory.cpp
src/dcm.cpp
src/motion.cpp
include/naoqi_dcm_driver/robot.hpp
include/naoqi_dcm_driver/tools.hpp
include/naoqi_dcm_driver/diagnostics.hpp
include/naoqi_dcm_driver/memory.hpp
include/naoqi_dcm_driver/dcm.hpp
include/naoqi_dcm_driver/motion.hpp
)
target_link_libraries(${projectName}
${catkin_LIBRARIES}
${naoqi_libqi_LIBRARIES}
${Boost_LIBRARIES}
)
add_dependencies(${projectName}
${catkin_EXPORTED_TARGETS}
)
install(TARGETS ${projectName}
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})