-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
109 lines (90 loc) · 2.76 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
cmake_minimum_required(VERSION 2.8.3)
project(vizzy_control)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
geometry_msgs
message_filters
roscpp
sensor_msgs
std_msgs
tf2
image_transport
pcl_ros
tf2_ros
message_generation
nodelet
vizzy_msgs
moveit_core
moveit_ros_planning
moveit_ros_planning_interface
)
add_message_files(
FILES
motorsArray.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES foveated_stereo_ros
# CATKIN_DEPENDS cv_bridge geometry_msgs message_filters roscpp sensor_msgs std_msgs tf
# DEPENDS system_lib
# CATKIN_DEPENDS message_runtime
)
include_directories(
${catkin_INCLUDE_DIRS}
#${CUDA_INCLUDE_DIRS}
)
set(CMAKE_BUILD_TYPE RELEASE)
add_definitions(-std=c++11)
add_executable(gaze_sim src/Gaze.cpp src/GazeSimulation.cpp)
## Specify libraries to link a library or executable target against
add_dependencies(gaze_sim vizzy_msgs_generate_messages_cpp)
target_link_libraries(gaze_sim
${catkin_LIBRARIES}
)
add_executable(gaze_real src/Gaze.cpp src/GazeReal.cpp)
add_dependencies(gaze_real vizzy_msgs_generate_messages_cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(gaze_real
${catkin_LIBRARIES}
)
add_executable(gaze_client src/GazeClient.cpp)
add_dependencies(gaze_client vizzy_msgs_generate_messages_cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(gaze_client
${catkin_LIBRARIES}
)
add_executable(gaze_client_wasd src/GazeClientWASD.cpp)
add_dependencies(gaze_client_wasd vizzy_msgs_generate_messages_cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(gaze_client_wasd
${catkin_LIBRARIES}
)
## Declare a cpp library
add_library(fixation_point_lib
src/FixationPoint.cpp
)
## Declare a cpp executable
add_executable(fixation_point_node src/FixationPointRos.cpp)
## Declare a cpp executable
add_executable(follow_trajectory_action_server src/VizzyTrajActionServerNode.cpp src/VizzyTrajectoryActionServer.cpp)
target_link_libraries(follow_trajectory_action_server
${catkin_LIBRARIES}
)
## Declare a cpp executable
add_executable(cartesian_action_server src/VizzyCartActionServerNode.cpp src/VizzyCartesianActionServer.cpp)
add_dependencies(cartesian_action_server vizzy_msgs_generate_messages_cpp)
target_link_libraries(cartesian_action_server
${catkin_LIBRARIES}
)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
#add_dependencies(fixation_point_node visualize_ball_generate_messages_cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(fixation_point_node
${catkin_LIBRARIES}
fixation_point_lib
)