-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·65 lines (52 loc) · 1.75 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cmake_minimum_required(VERSION 3.5)
project(arena_camera)
# Default to C++14
if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif ()
set(CMAKE_CXX_FLAGS "-g3 -O3")
# find dependencies
find_package(ament_cmake_auto REQUIRED)
find_package(rclcpp REQUIRED)
find_package(ament_lint_auto REQUIRED)
find_package(OpenCV REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(cv_bridge REQUIRED)
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindARENA.cmake")
link_directories(${arena_sdk_LIBRARIES})
ament_auto_find_build_dependencies()
ament_auto_add_library(arena_camera_node SHARED
"include/arena_camera/arena_camera.h"
"include/arena_camera/arena_camera_node.h"
"include/arena_camera/arena_cameras_handler.h"
"include/arena_camera/camera_settings.h"
"include/arena_camera/arena_image.h"
"src/arena_camera_node.cpp"
"src/arena_camera.cpp"
"src/arena_cameras_handler.cpp")
## ArenaSDK is not handled by ament, so we need the manual steps below.
target_include_directories(arena_camera_node
SYSTEM
PUBLIC
${arena_sdk_INCLUDES}
${OpenCV_INCLUDE_DIRS}
)
target_link_libraries(arena_camera_node
${OpenCV_LIBRARIES}
${arena_sdk_LIBRARIES}
)
# These are external libraries and include folders that we want to be visible to the packages
# that depend on this one.
ament_export_include_directories(${arena_sdk_INCLUDES})
if (BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif ()
rclcpp_components_register_node(arena_camera_node
PLUGIN "ArenaCameraNode"
EXECUTABLE arena_camera_node_exe)
ament_auto_package(INSTALL_TO_SHARE
launch
config
param
)