]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blob - CMakeLists.txt
Remove debug printf
[hercules2020/kcf.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.0.2)
2
3 project(kcf_tracker)
4
5 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic -Wno-long-long -fno-omit-frame-pointer")
6 if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
7   set(default_build_type "Release")
8   message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
9   set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE
10       STRING "Choose the type of build." FORCE)
11   # Set the possible values of build type for cmake-gui
12   set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
13     "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
14 endif()
15
16 FIND_PACKAGE( OpenCV REQUIRED )
17 link_directories ( ${OpenCV_LIB_DIR} )
18 include_directories ( ${OpenCV_INCLUDE_DIRS} )
19 MESSAGE(STATUS "OpenCV_LIB_DIR: ${OpenCV_LIB_DIR} ")
20 MESSAGE(STATUS "OpenCV_INCLUDE_DIRS: ${OpenCV_INCLUDE_DIRS}")
21
22 INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR}/)
23 include_directories(${CMAKE_SOURCE_DIR}/src/ ${CMAKE_SOURCE_DIR}/src/piotr_fhog ${CMAKE_SOURCE_DIR}/src/cn)
24
25 include_directories(${CMAKE_SOURCE_DIR}/sse2neon)
26
27 add_subdirectory(src)
28
29 IF(NOT use_cuda)
30   add_executable(kcf_vot main_vot.cpp vot.hpp)
31 ELSE()
32   cuda_add_executable( kcf_vot main_vot.cpp vot.hpp )
33   target_link_libraries(kcf_vot ${CUDA_LIBRARIES})
34 ENDIF() #OPENCV_CUFFT
35
36 target_link_libraries(kcf_vot ${OpenCV_LIBS} kcf)