-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
49 lines (42 loc) · 1.04 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
cmake_minimum_required(VERSION 3.0.2)
project(osk)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wuninitialized -ltbb")
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
pcl_conversions
rosbag
roscpp
sensor_msgs
std_msgs
tf
visualization_msgs
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS eigen_conversions geometry_msgs message_generation message_runtime nav_msgs pcl_conversions rosbag roscpp sensor_msgs std_msgs tf visualization_msgs
)
find_package(PCL REQUIRED)
find_package(TBB REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(run_osk src/run_osk.cc)
target_link_libraries(run_osk
TBB::tbb
${PCL_LIBRARIES}
${catkin_LIBRARIES}
)
add_executable(analyze_pose src/analyze_pose.cc)
target_link_libraries(analyze_pose
TBB::tbb
${PCL_LIBRARIES}
${catkin_LIBRARIES}
)