-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
45 lines (37 loc) · 1.11 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
cmake_minimum_required(VERSION 3.0.2)
project(mpl_calibration_toolbox)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O3")
find_package(catkin REQUIRED COMPONENTS
cv_bridge
geometry_msgs
rosbag
roscpp
roslib
rospy
sensor_msgs
std_msgs
)
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(OpenCV 4.2 REQUIRED)
find_package(yaml-cpp REQUIRED)
catkin_package(
INCLUDE_DIRS include
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
${Eigen_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
link_directories(
include
${OpenCV_LIBRARY_DIRS}
)
add_executable(image_publisher src/image_publisher.cpp)
add_executable(joint_extrinsic_calibrator src/joint_extrinsic_calibrator.cpp)
add_executable(handeye_calibrator src/handeye_calibrator.cpp)
target_link_libraries(image_publisher ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
target_link_libraries(joint_extrinsic_calibrator yaml-cpp ${catkin_LIBRARIES} ${CERES_LIBRARIES} ${Eigen_LIBRARIES} ${OpenCV_LIBRARIES})
target_link_libraries(handeye_calibrator yaml-cpp ${catkin_LIBRARIES} ${Eigen_LIBRARIES} ${OpenCV_LIBRARIES})