-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
54 lines (46 loc) · 1.03 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
cmake_minimum_required(VERSION 2.8)
set(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_HOME_DIRECTORY}/bin
)
add_definitions(
-std=c++11
)
find_package( OpenCV 2 REQUIRED )
find_package( PCL 1.7 REQUIRED )
find_package( Eigen3 REQUIRED )
add_definitions( ${PCL_DEFINITIONS} )
include_directories(
${PCL_INCLUDE_DIRS}
$ENV{OPENNI2_INCLUDE}
${OpenCV_INCLUDE_DIRS}
/usr/include
/usr/include/libusb-1.0/
${CMAKE_HOME_DIRECTORY}/include
)
link_directories(
/usr/local/lib
)
link_libraries(
-lopencv_objdetect
-lopencv_core
-lopencv_highgui
-lopencv_imgproc
-lpthread
-lOpenNI2
-lboost_system
-lfreenect
${PCL_LIBRARY_DIRS}
${FREENECT_LIBRARIES}
)
add_executable(
depthmap_to_pcd
src/KinectV1Sensor.cpp
src/OpenNIDepthSensor.cpp
src/DepthCameraReader.cpp
src/Utils.cpp
src/OpenCVUtils.cpp
src/PCLUtils.cpp
src/Serializer.cpp
)
target_link_libraries(depthmap_to_pcd ${PCL_LIBRARIES} ${OpenCV_LIBS} ${FREENECT_LIBRARIES})