forked from StanfordASL/mocap_optitrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (51 loc) · 1.38 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
cmake_minimum_required(VERSION 3.5)
project(mocap_optitrack)
# Default to c++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra)
endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
set(msg_files
"msg/PointArrayStamped.msg"
)
rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
DEPENDENCIES std_msgs geometry_msgs nav_msgs
)
#
#rosidl_target_interfaces(publish_address_book
# ${PROJECT_NAME} "rosidl_typesupport_cpp")
include_directories(include
${rclcpp_INCLUDE_DIRS}
${tf2_ros_INCLUDE_DIRS}
${geometry_msgs_INCLUDE_DIRS}
${nav_msgs_INCLUDE_DIRS}
)
add_subdirectory(src)
ament_export_dependencies(rosidl_default_runtime)
ament_export_include_directories(include)
install(DIRECTORY
launch config
DESTINATION share/${PROJECT_NAME}/
)
ament_package()
#if (CATKIN_ENABLE_TESTING)
# find_package(roslaunch REQUIRED)
# roslaunch_add_file_check(launch/mocap.launch)
#
# find_package(roslint REQUIRED)
# file(GLOB LINT_SRCS
# src/*.cpp
# include/*.h)
# set(ROSLINT_CPP_OPTS "--filter=-runtime/string,-readability/casting,-runtime/references")
# roslint_cpp(${LINT_SRCS})
# roslint_add_test()
#endif()