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.
40 lines
849 B
40 lines
849 B
cmake_minimum_required(VERSION 3.15.0)
|
|
project(stitch VERSION 0.1.0)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
SET(ArithStitchDir stitch)
|
|
|
|
IF(WIN32)
|
|
set(OpenCV_DIR "C:/Lib/opencv410_vc17/x64/vc17/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 "3rdParty/my_ceres_vc17/include/ceres/version.h")
|
|
|
|
target_link_libraries(stitch ${OpenCV_LIBS} ${LIB_STITCH})
|
|
|
|
|
|
add_executable(stitch_DJ "ProcDJ.cpp")
|
|
target_link_libraries(stitch_DJ ${OpenCV_LIBS} ${LIB_STITCH})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 可执行文件输出路径
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/Bin)
|