加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
dou 提交于 2024-01-04 18:39 . first commit
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})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化