You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
486 B

cmake_minimum_required(VERSION 3.5.0)
project(stitch VERSION 0.1.0 LANGUAGES C CXX)
SET(ArithStitchDir stitch)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS} public_include ${ArithStitchDir}/src)
# 设置算法库目录
SET(LIB_STITCH GuideStitch)
add_subdirectory(stitch)
add_executable(stitch main.cpp)
target_link_libraries(stitch ${OpenCV_LIBS} ${LIB_STITCH})
# 可执行文件输出路径
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/Bin)