-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
22 lines (14 loc) · 1.75 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
cmake_minimum_required(VERSION 2.8)
project(KF-EBT C CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic -O2 -Wno-long-long -fno-omit-frame-pointer -lpthread -msse -msse2 -msse3")
FIND_PACKAGE( OpenCV REQUIRED )
FIND_PACKAGE (Threads REQUIRED)
link_directories ( ${OpenCV_LIB_DIR} )
MESSAGE(STATUS "OpenCV_LIB_DIR: ${OpenCV_LIB_DIR}")
include_directories ( ${OpenCV_INCLUDE_DIRS} )
MESSAGE(STATUS "OpenCV_INCLUDE_DIRS: ${OpenCV_INCLUDE_DIRS}")
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR}/)
add_executable(KF-EBT main.cpp trackers/ASMS/colotracker.cpp trackers/ASMS/histogram.cpp trackers/ASMS/region.cpp trackers/kcf/piotr_fhog/gradientMex.cpp trackers/kcf/adjust.cpp trackers/kcf/kcf.cpp kfebt.cpp trackers/tasms.cpp trackers/tkcf.cpp trackers/CBT/consensus/fastcluster/fastcluster.cpp trackers/CBT/consensus/common.cpp trackers/CBT/consensus/Consensus.cpp trackers/tcbt.cpp trackers/CBT/cbt.cpp trackers/CBT/consensus/coloravaliation.cpp trackers/MOSSE/mosse.cpp trackers/NCC/ncc.cpp trackers/tncc.cpp trackers/tmosse.cpp trackers/tvdp.cpp kfebtracker.cpp)
add_executable(KF-EBT_WebCam main_cam.cpp trackers/ASMS/colotracker.cpp trackers/ASMS/histogram.cpp trackers/ASMS/region.cpp trackers/kcf/piotr_fhog/gradientMex.cpp trackers/kcf/adjust.cpp trackers/kcf/kcf.cpp kfebt.cpp trackers/tasms.cpp trackers/tkcf.cpp trackers/CBT/consensus/fastcluster/fastcluster.cpp trackers/CBT/consensus/common.cpp trackers/CBT/consensus/Consensus.cpp trackers/tcbt.cpp trackers/CBT/cbt.cpp trackers/CBT/consensus/coloravaliation.cpp trackers/MOSSE/mosse.cpp trackers/NCC/ncc.cpp trackers/tncc.cpp trackers/tmosse.cpp trackers/tvdp.cpp kfebtracker.cpp)
target_link_libraries(KF-EBT ${OpenCV_LIBS} pthread trax)
target_link_libraries(KF-EBT_WebCam ${OpenCV_LIBS} pthread)