-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (18 loc) · 782 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
cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR)
project(HumanCounter)
find_package(PCL 1.8 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable (HumanCounter HumanCounter.cpp)
target_link_libraries (HumanCounter ${PCL_LIBRARIES})
set(CMAKE_C_COMPILER "gcc")
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_COMPILER "g++")
set(CMAKE_CXX_FLAGS "-std=gnu++11")
set(CMAKE_CXX_FLAGS_DEBUG "-std=gnu++11 -g -O0")
find_package(PkgConfig)
pkg_check_modules(LIBOPENCV2 REQUIRED opencv)
include_directories(${LIBOPENCV2_INCLUDE_DIRS})
target_link_libraries(HumanCounter
${LIBOPENCV2_LDFLAGS} ${LIBOPENCV2_LIBRARIES} /usr/lib/hldstof/libtof.a /usr/lib/hldstof/libtof_cv.so rt m pthread stdc++)