1
+ cmake_minimum_required (VERSION 3.8)
2
+
3
+ project (autonav_manual)
4
+
5
+ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
6
+ add_compile_options (-Wall -Wextra -Wpedantic)
7
+ endif ()
8
+
9
+ # find dependencies
10
+ find_package (ament_cmake REQUIRED)
11
+ find_package (rclcpp REQUIRED)
12
+ find_package (rclpy REQUIRED)
13
+ find_package (rosidl_default_generators REQUIRED)
14
+ find_package (autonav_msgs REQUIRED)
15
+ find_package (autonav_shared REQUIRED)
16
+ # uncomment the following section in order to fill in
17
+ # further dependencies manually.
18
+ # find_package(<dependency> REQUIRED)
19
+
20
+ # msgs and srvs
21
+ #rosidl_generate_interfaces(${PROJECT_NAME}
22
+ # add message types here
23
+ #"path_to_message/message.msg"
24
+ #)
25
+
26
+ # C++
27
+
28
+ # Inlcude Cpp "include" directory
29
+ include_directories (include )
30
+
31
+ # Create Cpp executables
32
+ #add_executable(executable_name path_to_executable/executable.cpp)
33
+ #ament_target_dependencies(executable_name rclcpp other_dependencies)
34
+
35
+ # Install Cpp executables
36
+ install (TARGETS
37
+ # install executables by name
38
+ # executable_name
39
+ DESTINATION lib/${PROJECT_NAME}
40
+ )
41
+
42
+ # Python
43
+
44
+ # Use only if not using rosidl_generate_interfaces
45
+ # Install Python modules
46
+ #ament_python_install_package(${PROJECT_NAME})
47
+
48
+ # Install Python programs
49
+ install (PROGRAMS
50
+ # add programs in format:
51
+ #/path_to_program/program.py
52
+ src/controller_input.py
53
+ src/controller_listener.py
54
+ src/manual_24.py
55
+ src/manual_25.py
56
+ src/motormessage_listener.py
57
+ DESTINATION lib/${PROJECT_NAME}
58
+ )
59
+
60
+
61
+ if (BUILD_TESTING)
62
+ find_package (ament_lint_auto REQUIRED)
63
+ # the following line skips the linter which checks for copyrights
64
+ # comment the line when a copyright and license is added to all source files
65
+ set (ament_cmake_copyright_FOUND TRUE )
66
+ # the following line skips cpplint (only works in a git repo)
67
+ # comment the line when this package is in a git repo and when
68
+ # a copyright and license is added to all source files
69
+ set (ament_cmake_cpplint_FOUND TRUE )
70
+ ament_lint_auto_find_test_dependencies()
71
+ endif ()
72
+
73
+ ament_package()
0 commit comments