-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
108 lines (87 loc) · 2.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
cmake_minimum_required(VERSION 2.8.3)
project(ar_demo)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11 -DEIGEN_DONT_PARALLELIZE")
#-DEIGEN_USE_MKL_ALL")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
image_transport
sensor_msgs
cv_bridge
message_filters
camera_model
interactive_markers
)
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)
catkin_package(
)
include_directories(
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(Eigen3)
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
include_directories(src/utils/camodocal/include)
FILE(GLOB CamodocalCameraModelSources
src/utils/camodocal/src/chessboard/Chessboard.cc
src/utils/camodocal/src/calib/CameraCalibration.cc
src/utils/camodocal/src/camera_models/Camera.cc
src/utils/camodocal/src/camera_models/CameraFactory.cc
src/utils/camodocal/src/camera_models/CostFunctionFactory.cc
src/utils/camodocal/src/camera_models/PinholeCamera.cc
src/utils/camodocal/src/camera_models/CataCamera.cc
src/utils/camodocal/src/camera_models/EquidistantCamera.cc
src/utils/camodocal/src/camera_models/ScaramuzzaCamera.cc
src/utils/camodocal/src/sparse_graph/Transform.cc
src/utils/camodocal/src/gpl/gpl.cc
src/utils/camodocal/src/gpl/EigenQuaternionParameterization.cc
)
FILE( GLOB KuseUtils
src/utils/PoseManipUtils.cpp
src/utils/RosMarkerUtils.cpp
src/utils/EstimationFromPointClouds.cpp
)
# Naive AR node from Qin Tong
add_executable(ar_demo_node src/ar_demo_node.cpp)
# Interactive Markers
add_executable(interactive_marker_server src/interactive_marker_server.cpp)
# AR Node by mpkuse
add_executable(ar_demo_node3
src/ar_demo_node3.cpp
#src/PinholeCamera.cpp #TODO: Remove, this, instead add camodocal
src/MeshObject.cpp
src/SceneRenderer.cpp
src/ARDataManager.cpp
src/ARDataNode.cpp
${KuseUtils}
${CamodocalCameraModelSources}
)
# Unit Tests Start
add_executable( unit_test_estimate_ground_plane
src/unit_tests/estimate_ground_plane.cpp
${KuseUtils}
)
# Unit Tests ENDS
target_link_libraries(ar_demo_node
${catkin_LIBRARIES} ${OpenCV_LIBS}
)
# Interactive Markers
target_link_libraries(interactive_marker_server
${catkin_LIBRARIES} ${OpenCV_LIBS}
)
target_link_libraries(ar_demo_node3
${catkin_LIBRARIES} ${OpenCV_LIBS} ${PCL_LIBRARIES}
)
# Unit Tests Start
target_link_libraries(unit_test_estimate_ground_plane
${catkin_LIBRARIES} ${OpenCV_LIBS} ${PCL_LIBRARIES}
)
# Unit Tests ENDS