|
1 | 1 | cmake_minimum_required(VERSION 3.5)
|
| 2 | +project(carla_pointcloud_interface) |
2 | 3 |
|
3 | 4 | find_package(autoware_cmake REQUIRED)
|
4 | 5 | autoware_package()
|
5 | 6 |
|
6 |
| -project(carla_pointcloud_interface) |
7 |
| -if(NOT CMAKE_CXX_STANDARD) |
8 |
| - set(CMAKE_CXX_STANDARD 14) |
9 |
| -endif() |
10 |
| - |
11 |
| -if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
12 |
| - add_compile_options(-Wall -Wextra -Wpedantic -Werror) |
13 |
| -endif() |
14 |
| - |
15 |
| -if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
16 |
| - add_compile_options(-Wno-gnu-anonymous-struct -Wno-nested-anon-types ) |
17 |
| -endif() |
18 |
| - |
19 |
| - |
20 |
| -find_package(ament_cmake_auto REQUIRED) |
21 |
| -ament_auto_find_build_dependencies() |
22 |
| - |
23 |
| - |
24 |
| -find_package(Boost COMPONENTS signals) |
25 | 7 | find_package(PCL REQUIRED COMPONENTS common)
|
26 | 8 |
|
27 |
| - |
28 |
| - |
29 |
| -find_package(PkgConfig REQUIRED) |
30 |
| -pkg_check_modules(YAML_CPP REQUIRED yaml-cpp) |
31 |
| -find_path(YAML_CPP_INCLUDE_DIR |
32 |
| - NAMES yaml_cpp.h |
33 |
| - PATHS ${YAML_CPP_INCLUDE_DIRS}) |
34 |
| -find_library(YAML_CPP_LIBRARY |
35 |
| - NAMES YAML_CPP |
36 |
| - PATHS ${YAML_CPP_LIBRARY_DIRS}) |
37 |
| - |
38 |
| -find_package(OpenCV REQUIRED) |
39 |
| - |
40 |
| -link_directories(${YAML_CPP_LIBRARY_DIRS}) |
41 |
| - |
42 |
| -if(NOT ${YAML_CPP_VERSION} VERSION_LESS "0.5") |
43 |
| - add_definitions(-DHAVE_NEW_YAMLCPP) |
44 |
| -endif(NOT ${YAML_CPP_VERSION} VERSION_LESS "0.5") |
45 |
| - |
46 | 9 | include_directories(
|
47 |
| - ${OpenCV_INCLUDE_DIRS} |
48 | 10 | ${PCL_COMMON_INCLUDE_DIRS}
|
49 | 11 | )
|
50 | 12 |
|
51 | 13 | ament_auto_add_library(carla_pointcloud_interface SHARED
|
52 | 14 | src/carla_pointcloud_interface/carla_pointcloud_interface_node.cpp
|
53 | 15 | )
|
54 | 16 |
|
55 |
| - |
56 |
| -# workaround to allow deprecated header to build on both galactic and rolling |
57 |
| -if(${tf2_geometry_msgs_VERSION} VERSION_LESS 0.18.0) |
58 |
| - target_compile_definitions(carla_pointcloud_interface PRIVATE |
59 |
| - USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER |
60 |
| - ) |
61 |
| -endif() |
62 |
| - |
63 | 17 | rclcpp_components_register_node(carla_pointcloud_interface
|
64 | 18 | PLUGIN "PointCloudInterface"
|
65 | 19 | EXECUTABLE carla_pointcloud_interface_node
|
66 | 20 | )
|
67 | 21 |
|
68 |
| - |
69 | 22 | ament_auto_package(
|
70 | 23 | INSTALL_TO_SHARE
|
71 | 24 | launch
|
|
0 commit comments