Skip to content

Commit f8440e6

Browse files
committed
Apply CMakeLists formatting
1 parent 7d400fd commit f8440e6

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

bitbots_template_cpp/CMakeLists.txt

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,34 @@ cmake_minimum_required(VERSION 3.5)
22
project(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

99
find_package(ament_cmake REQUIRED)
1010
find_package(bitbots_docs REQUIRED)
1111
find_package(generate_parameter_library REQUIRED)
1212
find_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

1917
include_directories(include)
2018

2119
add_compile_options(-Wall -Werror -Wno-unused)
2220

2321
add_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

4029
enable_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

4835
ament_package()

0 commit comments

Comments
 (0)