forked from ledaiduongvnth/face_ds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (32 loc) · 906 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
cmake_minimum_required(VERSION 3.5.1)
project(face-ds)
enable_language(CXX)
include(FindCUDA)
set(CMAKE_CXX_STANDARD 14)
find_package(CUDA REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(
${CUDA_INCLUDE_DIRS}
/opt/nvidia/deepstream/deepstream-5.0/sources/includes
/usr/include/glib-2.0
/usr/include/gstreamer-1.0
)
add_executable(
face-ds
main.cpp
FaceDetector.h
FaceDetector.cpp
)
target_link_libraries(
face-ds
${CUDA_LIBRARIES}
nvinfer
nvinfer_plugin
${OpenCV_LIBS}
-L/usr/local/cuda-10.2/lib64/ -lcudart
-L/opt/nvidia/deepstream/deepstream-5.0/lib -Wl,-rpath=/opt/nvidia/deepstream/deepstream-5.0/lib
-lnvdsgst_meta -lnvds_meta -lnvds_inferutils -lnvds_utils -lm -lnvds_infercustomparser
-lgstreamer-1.0
-lgobject-2.0
-lglib-2.0
)