forked from ElettraSciComp/witmotion_IMU_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (39 loc) · 998 Bytes
/
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
cmake_minimum_required(VERSION 3.8)
project(witmotion_ros)
add_compile_options(-std=gnu++14)
set(CMAKE_BUILD_TYPE Release)
find_package(catkin REQUIRED COMPONENTS
roslib
roscpp
tf2
sensor_msgs
geometry_msgs
std_msgs
std_srvs
nav_msgs
tf2_geometry_msgs
)
catkin_package(CATKIN_DEPENDS
message_runtime
tf2
sensor_msgs
geometry_msgs
std_msgs
std_srvs
nav_msgs
tf2_geometry_msgs
)
add_subdirectory(witmotion-uart-qt)
include_directories(${catkin_INCLUDE_DIRS} include witmotion-uart-qt/include)
find_package(Qt5 REQUIRED COMPONENTS Core SerialPort)
set(CMAKE_AUTOMOC ON)
qt5_wrap_cpp(MOC_SOURCES
include/witmotion_ros.h
)
add_library(witmotion_ros
${MOC_SOURCES}
src/witmotion_ros.cpp
)
target_link_libraries(witmotion_ros ${catkin_LIBRARIES} witmotion-uart)
add_executable(witmotion_ros_node src/witmotion_ros_node.cpp)
target_link_libraries(witmotion_ros_node PRIVATE ${catkin_LIBRARIES} witmotion_ros)