Skip to content

Commit

Permalink
Merge pull request #45 from OUXT-Polaris/feature/type_adapter
Browse files Browse the repository at this point in the history
Feature/type adapter
  • Loading branch information
hakuturu583 authored Apr 30, 2024
2 parents 23df850 + 5ce9bc4 commit 2824394
Show file tree
Hide file tree
Showing 7 changed files with 414 additions and 106 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
34 changes: 11 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,23 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

include_directories(
include
)

add_executable(example
ament_auto_add_executable(example
src/example.cpp
)
ament_target_dependencies(example
rclcpp
sensor_msgs)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
find_package(pcl_type_adapter REQUIRED)
find_package(PCL REQUIRED)
ament_auto_add_gtest(test_type_adapter test/test_type_adapter.cpp)
target_link_libraries(test_type_adapter ${PCL_LIBRARIES})
target_include_directories(test_type_adapter PRIVATE ${PCL_INCLUDE_DIRS})
target_link_directories(test_type_adapter PRIVATE ${PCL_LIBRARY_DIRS})
ament_target_dependencies(test_type_adapter pcl_type_adapter)
ament_lint_auto_find_test_dependencies()
endif()

install(
DIRECTORY "include/"
DESTINATION include
)

install(TARGETS
example
DESTINATION lib/${PROJECT_NAME}
)

ament_export_include_directories(include)
ament_package()
ament_auto_package()
6 changes: 5 additions & 1 deletion dependency.repos
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ repositories:
ouxt_common:
type: git
url: https://github.com/OUXT-Polaris/ouxt_common.git
version: master
version: master
pcl_type_adapter:
type: git
url: https://github.com/OUXT-Polaris/pcl_type_adapter.git
version: master
Loading

0 comments on commit 2824394

Please sign in to comment.