-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (24 loc) · 1.04 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
cmake_minimum_required(VERSION 3.0)
project( kinect )
set( CMAKE_CXX_COMPILER "g++" )
set( CMAKE_BUILD_TYPE "Debug" )
set( CMAKE_CXX_FLAGS "-std=c++11 -march=native -O3" )
set( src_dir ${CMAKE_CURRENT_SOURCE_DIR}/src )
set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin )
set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib )
# OpenCV
find_package(OpenCV REQUIRED)
add_library (freenect_cv SHARED
${src_dir}/my_libfreenect_cv.cpp
${src_dir}/Accuracy_assessment.cpp
)
set_target_properties (freenect_cv PROPERTIES
VERSION ${PROJECT_VER}
SOVERSION ${PROJECT_APIVER})
include_directories( ${PROJECT_SOURCE_DIR}/include )
include_directories( ${PROJECT_SOURCE_DIR}/include/c_sync )
target_link_libraries (freenect_cv freenect_sync ${OpenCV_LIBS})
add_executable(kinect_cv ${src_dir}/kinect_cv.cpp)
target_link_libraries(kinect_cv freenect freenect_sync freenect_cv ${OpenCV_LIBS})
add_executable(Accuracy_assessment ${src_dir}/Accuracy_assessment.cpp)
target_link_libraries(Accuracy_assessment freenect freenect_sync freenect_cv ${OpenCV_LIBS})