-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
45 lines (39 loc) · 910 Bytes
/
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 2.8)
project(KinectToPCL)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
FIND_PACKAGE(OpenCV REQUIRED)
FIND_PACKAGE(PCL 1.7 REQUIRED)
message(STATUS "OpenCV library status:")
message(STATUS " version: ${OpenCV_VERSION}")
message(STATUS " libraries: ${OpenCV_LIBS}")
message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}")
INCLUDE_DIRECTORIES(
${OpenCV_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
svm
)
LINK_DIRECTORIES(
${PCL_LIBRARY_DIRS}
)
ADD_DEFINITIONS(
${PCL_DEFINITIONS}
)
set(LIBRARIES
${OPENCV_LIBS}
${OPENCV_LIBRARIES}
)
set(SOURCE_FILES
main.cpp
LineFilterBuilder.cpp
PointCloudBuilder.cpp
KinectParameters.cpp
EntropyFilterBuilder.cpp
ImageRebuild.cpp
PointCloudUtilities.cpp
ClusterDivider.cpp
)
add_executable(KinectToPCL ${SOURCE_FILES})
target_link_libraries(KinectToPCL
${OpenCV_LIBS}
${PCL_LIBRARIES}
)