Skip to content

Commit

Permalink
update template pkg files
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Jun 20, 2024
1 parent b3432fa commit 3cd276c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .template-interface-package/.CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@ project(__PACKAGE_NAME__)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
DEPENDENCIES
)

ament_package()
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package()
6 changes: 5 additions & 1 deletion .template-interface-package/.package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@

<license>Apache 2</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<exec_depend>rosidl_default_runtime</exec_depend>

<test_depend>ament_lint_auto</test_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
Expand Down
5 changes: 4 additions & 1 deletion .template-package/.CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ project(__PACKAGE_NAME__)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake REQUIRED)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down
4 changes: 3 additions & 1 deletion .template-package/.package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

<license>Apache 2</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_auto</buildtool_depend>

<test_depend>ament_lint_auto</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down

0 comments on commit 3cd276c

Please sign in to comment.