-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
73 lines (54 loc) · 3.28 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
cmake_minimum_required(VERSION 2.8.3)
project(bu_project)
find_package(catkin REQUIRED COMPONENTS cmake_modules apriltags std_msgs cv_bridge image_transport message_generation sensor_msgs)
find_package(Eigen REQUIRED)
add_message_files(DIRECTORY msg
FILES ResizedImage.msg
tagdata3d.msg
filteredaverage.msg
)
generate_messages(DEPENDENCIES geometry_msgs sensor_msgs std_msgs)
catkin_package(INCLUDE_DIRS include
LIBRARIES apriltags
CATKIN_DEPENDS apriltags cv_bridge image_transport message_runtime sensor_msgs std_msgs
DEPENDS Eigen)
find_package(OpenCV)
include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${Eigen_INCLUDE_DIRS})
add_executable(my_publisher src/my_publisher.cpp)
add_dependencies(my_publisher ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(my_publisher ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(tag_calculations src/tag_calculations.cpp)
add_dependencies(tag_calculations ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(tag_calculations ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(noise_variance_sampling src/noise_variance_sampling.cpp)
add_dependencies(noise_variance_sampling ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(noise_variance_sampling ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(gyro_noise_test src/gyro_noise_test.cpp)
add_dependencies(gyro_noise_test ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(gyro_noise_test ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(rotation_noise_test src/rotation_noise_test.cpp)
add_dependencies(rotation_noise_test ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(rotation_noise_test ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(filtered_average src/filtered_average.cpp)
add_dependencies(filtered_average ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(filtered_average ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(robot_pose src/robot_pose.cpp)
add_dependencies(robot_pose ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(robot_pose ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(filter_test src/filter_test.cpp)
add_dependencies(filter_test ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(filter_test ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(my_subscriber src/my_subscriber.cpp)
add_dependencies(my_subscriber ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(my_subscriber ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(frankenstein src/frankenstein.cpp)
add_dependencies(frankenstein ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})
target_link_libraries(frankenstein ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
install(TARGETS my_publisher my_subscriber
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES resized_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)