cmake_minimum_required(VERSION 3.5.0)
project(stitch VERSION 0.1.0 LANGUAGES C CXX)

SET(ArithStitchDir stitch)

IF(WIN32)
    set(OpenCV_DIR "C:/opencv/build/x64/vc14/lib")
ELSE(WIN32)
    set(OpenCV_DIR "/home/wcw/opencv-3.4.16/install/share/OpenCV")
ENDIF(WIN32)


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)
