-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
76 lines (65 loc) · 2.22 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 2.8.7)
project(XSTracking)
set(CMAKE_CXX_STANDARD 14)
# add OpenCV
set(OPENCV_DIR_HINT "")
set(OpenCV_STATIC OFF)
find_package(OpenCV REQUIRED HINTS ${OPENCV_DIR_HINT})
# add 3rdparty source
set(CF_TCLAP_DIR "src/3rdparty/tclap")
set(CF_CV_EXT_DIR "src/3rdparty/cv_ext")
set(CF_PIOTR_DIR "src/3rdparty/piotr")
set(CF_TRACKER_RUN "src/tracker_run")
# add 3rdparty source
set(CF_TCLAP_DIR "src/3rdparty/tclap")
set(CF_CV_EXT_DIR "src/3rdparty/cv_ext")
set(CF_PIOTR_DIR "src/3rdparty/piotr")
set(CF_RS232_DIR "src/3rdparty/usart")
set(CF_TRACKER_RUN "src/tracker_run")
include_directories(${OpenCV_DIR}/include)
include_directories(${CF_TCLAP_DIR}
${CF_CV_EXT_DIR}
${CF_PIOTR_DIR}
${CF_PIOTR_DIR}/src
${CF_RS232_DIR}
${CF_TRACKER_RUN}
${PROJECT_SOURCE_DIR})
include_directories(src/cf_libs/kcf
src/cf_libs/dsst
src/cf_libs/common
src/cf_libs/staple)
set(CF_PIOTR_SOURCES
${CF_PIOTR_DIR}/gradientMex.hpp
${CF_PIOTR_DIR}/src/gradientMex.cpp
${CF_PIOTR_DIR}/src/sse.hpp
${CF_PIOTR_DIR}/src/wrappers.hpp)
set(CF_LIB_COMMON_SOURCES
src/cf_libs/common/feature_channels.hpp
src/cf_libs/common/mat_consts.hpp
src/cf_libs/common/math_helper.hpp
src/cf_libs/common/math_helper.cpp
src/cf_libs/common/cf_tracker.hpp
src/cf_libs/common/scale_estimator.hpp
src/cf_libs/common/cv_ext.hpp
src/cf_libs/common/tracker_debug.hpp
${CF_CV_EXT_DIR}/shift.cpp
${CF_CV_EXT_DIR}/shift.hpp
${CF_CV_EXT_DIR}/math_spectrums.cpp
${CF_CV_EXT_DIR}/math_spectrums.hpp
${CF_CV_EXT_DIR}/psr.hpp
${CF_PIOTR_SOURCES})
set(CF_MAIN_SOURCES
${CF_CV_EXT_DIR}/init_box_selector.hpp
${CF_CV_EXT_DIR}/init_box_selector.cpp
${CF_TRACKER_RUN}/tracker_run.hpp
${CF_TRACKER_RUN}/tracker_run.cpp)
add_executable(XSTracking
src/main.cpp
src/common.cpp
src/camera.cpp
src/cf_libs/dsst/dsst_debug.hpp
src/cf_libs/dsst/dsst_tracker.hpp
src/3rdparty/usart/usart.cpp
${CF_MAIN_SOURCES}
${CF_LIB_COMMON_SOURCES})
target_link_libraries(XSTracking ${OpenCV_LIBS} -lpthread)