Skip to content

Commit 33f8b65

Browse files
committed
Modified the package info and build info
Signed-off-by: Pyo <[email protected]>
1 parent 4a1b623 commit 33f8b65

File tree

4 files changed

+35
-17
lines changed

4 files changed

+35
-17
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
################################################################################
2+
# Set minimum required version of cmake, project name and compile options
3+
################################################################################
14
cmake_minimum_required(VERSION 3.5)
25
project(turtlebot3_applications)
36

47
if(NOT CMAKE_CXX_STANDARD)
58
set(CMAKE_CXX_STANDARD 17)
69
endif()
710

11+
################################################################################
12+
# Find ament packages and libraries for ament and system dependencies
13+
################################################################################
814
find_package(ament_cmake REQUIRED)
15+
16+
################################################################################
17+
# Macro for ament package
18+
################################################################################
919
ament_package()

turtlebot3_automatic_parking/package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
<export>
2121
<build_type>ament_python</build_type>
2222
</export>
23-
2423
</package>

turtlebot3_follower/CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
################################################################################
2+
# Set minimum required version of cmake, project name and compile options
3+
################################################################################
14
cmake_minimum_required(VERSION 3.8)
25
project(turtlebot3_follower)
36

47
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
58
add_compile_options(-Wall -Wextra -Wpedantic)
69
endif()
710

8-
# find dependencies
11+
################################################################################
12+
# Find ament packages and libraries for ament and system dependencies
13+
################################################################################
914
find_package(ament_cmake REQUIRED)
1015
find_package(geometry_msgs REQUIRED)
1116
find_package(nav2_msgs REQUIRED)
@@ -15,6 +20,7 @@ find_package(std_msgs REQUIRED)
1520
find_package(tf2 REQUIRED)
1621
find_package(tf2_geometry_msgs REQUIRED)
1722
find_package(tf2_ros REQUIRED)
23+
1824
include_directories(
1925
include
2026
)
@@ -32,6 +38,9 @@ ament_target_dependencies(follower
3238
nav2_msgs
3339
)
3440

41+
################################################################################
42+
# Install
43+
################################################################################
3544
install(TARGETS
3645
follower
3746
DESTINATION lib/${PROJECT_NAME}
@@ -42,4 +51,7 @@ install(
4251
DESTINATION share/${PROJECT_NAME}
4352
)
4453

54+
################################################################################
55+
# Macro for ament package
56+
################################################################################
4557
ament_package()

turtlebot3_panorama/CMakeLists.txt

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
################################################################################
2+
# Set minimum required version of cmake, project name and compile options
3+
################################################################################
14
cmake_minimum_required(VERSION 3.5)
25
project(turtlebot3_panorama)
36

@@ -19,6 +22,9 @@ elseif(ROS_DISTRO STREQUAL "jazzy" OR ROS_DISTRO STREQUAL "rolling")
1922
add_definitions(-DROS2_JAZZY_OR_ROLLING)
2023
endif()
2124

25+
################################################################################
26+
# Find ament packages and libraries for ament and system dependencies
27+
################################################################################
2228
find_package(ament_cmake REQUIRED)
2329
find_package(Boost REQUIRED COMPONENTS system)
2430
find_package(cv_bridge REQUIRED)
@@ -59,6 +65,9 @@ target_link_libraries(${PROJECT_NAME}
5965
${OpenCV_LIBRARIES}
6066
)
6167

68+
################################################################################
69+
# Install
70+
################################################################################
6271
install(DIRECTORY include/
6372
DESTINATION include
6473
)
@@ -71,21 +80,9 @@ install(TARGETS ${PROJECT_NAME}
7180
DESTINATION lib/${PROJECT_NAME}
7281
)
7382

74-
if(BUILD_TESTING)
75-
find_package(ament_cmake_cppcheck REQUIRED)
76-
find_package(ament_cmake_cpplint REQUIRED)
77-
find_package(ament_cmake_lint_cmake REQUIRED)
78-
find_package(ament_cmake_uncrustify REQUIRED)
79-
find_package(ament_cmake_xmllint REQUIRED)
80-
81-
ament_cppcheck()
82-
ament_cpplint()
83-
ament_lint_cmake()
84-
ament_uncrustify()
85-
ament_xmllint()
86-
endif()
87-
83+
################################################################################
84+
# Macro for ament package
85+
################################################################################
8886
ament_export_include_directories(include)
8987
ament_export_dependencies(${dependencies})
90-
9188
ament_package()

0 commit comments

Comments
 (0)