forked from ros-naoqi/extrinsic_calibration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (46 loc) · 1.02 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
cmake_minimum_required(VERSION 2.8.3)
SET(PROJECTNAME extrinsic_calibration)
project(${PROJECTNAME})
ADD_DEFINITIONS(
-std=c++11 # Or -std=c++0x
# Other flags
)
#find_package(Boost QUIET COMPONENTS bind)
find_package(catkin REQUIRED COMPONENTS
cmake_modules
roscpp
cv_bridge
image_transport
geometry_msgs
message_filters
tf
#opencv_candidate
)
find_package(OpenCV REQUIRED)
message(STATUS "OpenCV version: ${OpenCV_VERSION}")
catkin_package(
INCLUDE_DIRS include/extrinsic_calibration
CATKIN_DEPENDS roscpp cv_bridge image_transport geometry_msgs
DEPENDS OpenCV
)
###########
## Build ##
###########
include_directories(
include/extrinsic_calibration
SYSTEM
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
SET(SRC
src/main.cpp
src/calibrator.cpp
src/pose_estimation.cpp
include/extrinsic_calibration/calibrator.hpp
include/extrinsic_calibration/pose_estimation.hpp
)
add_executable(${PROJECTNAME} ${SRC})
target_link_libraries(${PROJECTNAME}
${catkin_LIBRARIES}
${OpenCV_LIBS}
)