-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (32 loc) · 955 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
cmake_minimum_required(VERSION 3.0.2)
project(imu_orientation_estimator)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS "-std=c++11 -O0 -Wall")
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
rospy
sensor_msgs
nav_msgs
tf
tf2
tf2_ros
tf2_geometry_msgs
std_msgs
)
catkin_package(CATKIN_DEPENDS roscpp sensor_msgs geometry_msgs nav_msgs tf tf2 tf2_ros tf2_geometry_msgs std_msgs)
include_directories(
include
${catkin_INCLUDE_DIRS}
"/usr/include/Eigen3"
)
add_library(${PROJECT_NAME} SHARED
src/imu_orientation_estimator.cpp
)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ) #Eigen没有库文件
# find_package(OpenCV REQUIRED)
# include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(main src/main.cpp)
target_link_libraries(main ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PROJECT_NAME})