-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·97 lines (65 loc) · 3.06 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
cmake_minimum_required(VERSION 2.8.3)
project(tamiya_cam_robot)
set(CMAKE_CXX_STANDARD 14) # C++14...
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp rospy geometry_msgs genmsg)
find_package(Threads REQUIRED)
# add_subdirectory(src)
include_directories(src)
## Declare ROS messages and services
#add_message_files(FILES Num.msg)
#add_service_files(FILES AddTwoInts.srv)
## Generate added messages and services
generate_messages(DEPENDENCIES geometry_msgs)
## Declare a catkin package
catkin_package()
## Build talker and listener
include_directories(include ${catkin_INCLUDE_DIRS})
# web_listener (deprecated)
add_executable(web_listener src/web_listener.cpp)
target_link_libraries(web_listener ${catkin_LIBRARIES})
target_link_libraries(web_listener Threads::Threads)
target_link_libraries(web_listener pigpiod_if2)
add_dependencies(web_listener tamiya_cam_robot_generate_messages_cpp)
# veb_listener (deprecated)
add_executable(vel_listener src/vel_listener.cpp)
target_link_libraries(vel_listener ${catkin_LIBRARIES})
target_link_libraries(vel_listener Threads::Threads)
target_link_libraries(vel_listener pigpiod_if2)
add_dependencies(vel_listener tamiya_cam_robot_generate_messages_cpp)
## wheels_listener
add_executable(wheels_listener src/wheels_listener)
target_link_libraries(wheels_listener ${catkin_LIBRARIES})
target_link_libraries(wheels_listener Threads::Threads)
target_link_libraries(wheels_listener pigpiod_if2)
add_dependencies(wheels_listener tamiya_cam_robot_generate_messages_cpp)
## test_run (deprecated)
add_executable(test_run src/test_run.cpp)
target_link_libraries(test_run ${catkin_LIBRARIES})
target_link_libraries(test_run Threads::Threads)
target_link_libraries(test_run pigpiod_if2)
add_dependencies(test_run tamiya_cam_robot_generate_messages_cpp)
## rainbow_talker
add_executable(rainbow_talker src/rainbow_talker)
target_link_libraries(rainbow_talker ${catkin_LIBRARIES})
target_link_libraries(rainbow_talker Threads::Threads)
target_link_libraries(rainbow_talker pigpiod_if2)
add_dependencies(rainbow_talker tamiya_cam_robot_generate_messages_cpp)
## servo_listener
add_executable(servo_listener src/servo_listener)
target_link_libraries(servo_listener ${catkin_LIBRARIES})
target_link_libraries(servo_listener Threads::Threads)
target_link_libraries(servo_listener pigpiod_if2)
add_dependencies(servo_listener tamiya_cam_robot_generate_messages_cpp)
## gpio_writing_listener
add_executable(gpio_writing_listener src/gpio_writing_listener)
target_link_libraries(gpio_writing_listener ${catkin_LIBRARIES})
target_link_libraries(gpio_writing_listener Threads::Threads)
target_link_libraries(gpio_writing_listener pigpiod_if2)
add_dependencies(gpio_writing_listener tamiya_cam_robot_generate_messages_cpp)
## neopixel_listener
add_executable(neopixel_listener src/neopixel_listener)
target_link_libraries(neopixel_listener ${catkin_LIBRARIES})
target_link_libraries(neopixel_listener Threads::Threads)
target_link_libraries(neopixel_listener pigpiod_if2)
add_dependencies(neopixel_listener tamiya_cam_robot_generate_messages_cpp)