-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txtcopy
134 lines (91 loc) · 6.57 KB
/
CMakeLists.txtcopy
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
cmake_minimum_required (VERSION 2.6)
project (fhg_pcl)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_CXX_FLAGS "-W -Wall -Wno-unused-parameter -frounding-math ")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
FIND_PACKAGE( OpenCV 2.4.8 EXACT REQUIRED )
find_package(PCL 1.6 REQUIRED COMPONENTS common io search filters kdtree registration visualization surface segmentation)
#include_directories(${PCL_INCLUDE_DIRS} /usr/local/MATLAB/R2012a/extern/include)
include_directories(${PCL_INCLUDE_DIRS} )
#link_directories(${PCL_LIBRARY_DIRS} /usr/local/MATLAB/R2012a/bin/glnxa64)
#link_libraries(osg osgText osgViewer osgGA CGAL eng mat mx boost_program_options boost_thread boost_filesystem boost_system)
add_definitions(${PCL_DEFINITIONS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
#PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME} ${incs})
#PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME}/impl ${impl_incs})
#add_library(fhg_bindings src/fhg_bindings.cpp)
#target_link_libraries(fhg_bindings ${PCL_LIBRARIES} )
#add_library(fhg_pcl src/fhg_pcl.cpp)
#target_link_libraries(fhg_pcl ${PCL_LIBRARIES} )
add_library(fhg_binding_common src/fhg_binding_common.cpp)
target_link_libraries(fhg_binding_common ${PCL_LIBRARIES} )
add_library(fhg_binding_filters src/fhg_binding_filters.cpp)
target_link_libraries(fhg_binding_filters ${PCL_LIBRARIES} )
add_library(fhg_binding_sac src/fhg_binding_sac.cpp)
target_link_libraries(fhg_binding_sac ${PCL_LIBRARIES} )
add_library(fhg_binding_kdtree src/fhg_binding_kdtree.cpp)
target_link_libraries(fhg_binding_kdtree ${PCL_LIBRARIES} fhg_binding_common)
add_library(fhg_binding_search src/fhg_binding_search.cpp)
target_link_libraries(fhg_binding_search ${PCL_LIBRARIES} fhg_binding_common fhg_binding_kdtree)
add_library(fhg_binding_surface src/fhg_binding_surface.cpp)
target_link_libraries(fhg_binding_surface ${PCL_LIBRARIES} fhg_binding_common fhg_binding_search)
add_library(fhg_binding_features src/fhg_binding_features.cpp)
target_link_libraries(fhg_binding_features ${PCL_LIBRARIES} fhg_binding_common fhg_binding_kdtree fhg_binding_search fhg_binding_filters )
add_library(fhg_binding_segmentation src/fhg_binding_segmentation.cpp)
target_link_libraries(fhg_binding_segmentation ${PCL_LIBRARIES} fhg_binding_search fhg_binding_sac fhg_binding_filters fhg_binding_features )
add_library(fhg_binding_registration src/fhg_binding_registration.cpp)
target_link_libraries(fhg_binding_registration ${PCL_LIBRARIES} fhg_binding_common fhg_binding_search fhg_binding_sac fhg_binding_features fhg_binding_filters )
add_library(fhg_binding_visualization src/fhg_binding_visualization.cpp)
target_link_libraries(fhg_binding_visualization ${PCL_LIBRARIES} )
set(FHG_PCL_BINDINGS fhg_binding_common fhg_binding_filters fhg_binding_sac fhg_binding_kdtree fhg_binding_search fhg_binding_surface fhg_binding_features fhg_binding_segmentation fhg_binding_registration fhg_binding_visualization)
add_library(fhg_kdtree src/pcl/fhg_kdtree.cpp)
target_link_libraries(fhg_kdtree ${PCL_LIBRARIES} )
add_library(fhg_registration src/pcl/fhg_registration.cpp)
target_link_libraries(fhg_registration ${PCL_LIBRARIES} )
add_library(fhg_utils src/pcl/fhg_utils.cpp)
target_link_libraries(fhg_utils ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS})
add_library(fhg_surface src/pcl/fhg_surface.cpp)
target_link_libraries(fhg_surface ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS})
add_library(fhg_common src/pcl/fhg_common.cpp)
target_link_libraries(fhg_common ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_io fhg_utils)
add_library(fhg_types src/pcl/fhg_types.cpp)
target_link_libraries(fhg_types ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS})
add_library(fhg_opencv src/pcl/fhg_opencv.cpp)
target_link_libraries(fhg_opencv ${PCL_LIBRARIES} ${OpenCV_LIBS} ${FHG_PCL_BINDINGS})
add_library(fhg_histogram src/pcl/fhg_histogram.cpp)
target_link_libraries(fhg_common ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_common fhg_types)
add_library(fhg_models src/pcl/fhg_models.cpp)
target_link_libraries(fhg_models ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_common fhg_types fhg_registration)
add_library(fhg_io src/pcl/fhg_io.cpp)
target_link_libraries(fhg_io ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_utils fhg_models)
add_library(fhg_segmentation src/pcl/fhg_segmentation.cpp)
target_link_libraries(fhg_models ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_common fhg_surface fhg_types)
add_library(fhg_apps src/pcl/fhg_apps.cpp)
target_link_libraries(fhg_models ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_kdtree fhg_utils fhg_io fhg_common fhg_histogram fhg_types fhg_models fhg_segmentation fhg_opencv fhg_registration fhg_surface )
#add_library(binding_lib src/binding_lib.cpp)
#target_link_libraries(binding_lib ${PCL_LIBRARIES} )
set(FHG_PCL_LIBS fhg_kdtree fhg_utils fhg_io fhg_common fhg_histogram fhg_types fhg_models fhg_segmentation fhg_opencv fhg_registration fhg_surface )
#set(FHG_PCL_LIBS fhg_kdtree fhg_utils fhg_io fhg_common fhg_histogram )
#set(FHG_PCL_LIBS fhg_pcl)
#add_executable(stairdetectorpcds src/pcl/apps/stairdetectorpcds.cpp)
#target_link_libraries(stairdetectorpcds boost_thread boost_filesystem boost_system ${OpenCV_LIBS} ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_apps)
#add_executable(stairdetectorlocalpcds src/pcl/apps/stairdetectorlocalpcds.cpp)
#target_link_libraries(stairdetectorlocalpcds boost_thread boost_filesystem boost_system ${OpenCV_LIBS} ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_apps)
#add_executable(stairdetectorlocalXtion src/pcl/apps/stairdetectorlocalXtion.cpp)
#target_link_libraries(stairdetectorlocalXtion boost_thread boost_filesystem boost_system ${OpenCV_LIBS} ${PCL_LIBRARIES} ${FHG_PCL_BINDINGS} fhg_apps)
##########################################################################################################
add_executable(playground tests/playground.cpp)
add_executable(normalsvis src/pcl/apps/normalsvis.cpp)
target_link_libraries(normalsvis boost_thread boost_filesystem boost_system ${PCL_LIBRARIES})
#target_link_libraries(playground boost_thread boost_filesystem boost_system ${PCL_LIBRARIES} )
add_executable(pcd_to_rgb src/pcl/apps/pcd_to_rgb.cpp)
target_link_libraries(pcd_to_rgb ${OpenCV_LIBS} ${PCL_LIBRARIES} )
#Tailei
add_executable(steps_test src/pcl/apps/stairdetector_tailei.cpp)
target_link_libraries(steps_test boost_thread boost_filesystem boost_system ${OpenCV_LIBS} ${PCL_LIBRARIES} fhg_apps ${FHG_PCL_BINDINGS} yaml_cpp)
#end tailei
add_executable(icp_vis tests/icp_vis.cpp)
target_link_libraries(icp_vis ${OpenCV_LIBS} ${PCL_LIBRARIES} )