代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 2.8)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_LIST_DIR})
include_directories(${CMAKE_CURRENT_LIST_DIR})
SET(CMAKE_CXX_FLAGS "-std=c++11 -O3 -pthread")
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_DIRS} )
file(GLOB eco_srcs
${CMAKE_CURRENT_LIST_DIR}/*.hpp
${CMAKE_CURRENT_LIST_DIR}/*.h
${CMAKE_CURRENT_LIST_DIR}/eco.cc
${CMAKE_CURRENT_LIST_DIR}/feature_extractor.cc
${CMAKE_CURRENT_LIST_DIR}/feature_operator.cc
${CMAKE_CURRENT_LIST_DIR}/ffttools.cc
${CMAKE_CURRENT_LIST_DIR}/fhog.cc
${CMAKE_CURRENT_LIST_DIR}/interpolator.cc
${CMAKE_CURRENT_LIST_DIR}/metrics.cc
${CMAKE_CURRENT_LIST_DIR}/optimize_scores.cc
${CMAKE_CURRENT_LIST_DIR}/regularization_filter.cc
${CMAKE_CURRENT_LIST_DIR}/sample_update.cc
${CMAKE_CURRENT_LIST_DIR}/scale_filter.cc
${CMAKE_CURRENT_LIST_DIR}/training.cc)
if(SIMD GREATER 0)
set(eco_srcs ${eco_srcs} ${CMAKE_CURRENT_LIST_DIR}/gradient.cpp)
endif()
set(eco_demo_srcs ${eco_srcs} ${CMAKE_CURRENT_LIST_DIR}/runecotracker.cc )
set(eco_demo_srcs_demo ${eco_srcs} ${CMAKE_CURRENT_LIST_DIR}/runecotracker_demo.cc )
#compile eco library
add_library(ecotracker SHARED ${eco_srcs})
#compile eco demo
add_executable(runecotracker.bin ${eco_demo_srcs})
target_link_libraries(runecotracker.bin ${OpenCV_LIBS})
add_executable(runecotracker_demo.bin ${eco_demo_srcs_demo})
target_link_libraries(runecotracker_demo.bin ${OpenCV_LIBS})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。