@@ -2,47 +2,34 @@ cmake_minimum_required(VERSION 3.5)
22project (bitbots_template_cpp)
33
44# Add support for C++17
5- if (NOT CMAKE_CXX_STANDARD)
6- set (CMAKE_CXX_STANDARD 17)
7- endif ()
5+ if (NOT CMAKE_CXX_STANDARD)
6+ set (CMAKE_CXX_STANDARD 17)
7+ endif ()
88
99find_package (ament_cmake REQUIRED)
1010find_package (bitbots_docs REQUIRED)
1111find_package (generate_parameter_library REQUIRED)
1212find_package (rclcpp REQUIRED)
1313
14- generate_parameter_library(
15- bitbots_template_cpp_parameters
16- config/bitbots_template_cpp_parameters.yaml
17- )
14+ generate_parameter_library(bitbots_template_cpp_parameters
15+ config/bitbots_template_cpp_parameters.yaml)
1816
1917include_directories (include )
2018
2119add_compile_options (-Wall -Werror -Wno-unused)
2220
2321add_executable (template src/template.cpp)
2422
25- target_link_libraries (
26- template
27- rclcpp::rclcpp
28- bitbots_template_cpp_parameters
29- )
30-
31- ## Specify libraries to link a library or executable target against
32- ament_target_dependencies(
33- template
34- ament_cmake
35- bitbots_docs
36- generate_parameter_library
37- rclcpp
38- )
23+ target_link_libraries (template rclcpp::rclcpp bitbots_template_cpp_parameters)
24+
25+ # Specify libraries to link a library or executable target against
26+ ament_target_dependencies(template ament_cmake bitbots_docs
27+ generate_parameter_library rclcpp)
3928
4029enable_bitbots_docs()
4130
42- install (TARGETS template
43- DESTINATION lib/${PROJECT_NAME} )
31+ install (TARGETS template DESTINATION lib/${PROJECT_NAME} )
4432
45- install (DIRECTORY launch
46- DESTINATION share/${PROJECT_NAME} )
33+ install (DIRECTORY launch DESTINATION share/${PROJECT_NAME} )
4734
4835ament_package()
0 commit comments