2011-05-04 19:09:42 +08:00
|
|
|
project(stitching)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/core/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/imgproc/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/objdetect/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/ml/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/highgui/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/video/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/features2d/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/flann/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/calib3d/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/legacy/include"
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/imgproc/src" # for gcgraph.hpp
|
|
|
|
"${CMAKE_SOURCE_DIR}/modules/gpu/include"
|
|
|
|
)
|
|
|
|
|
|
|
|
set(stitching_libs opencv_core opencv_imgproc opencv_highgui opencv_features2d opencv_calib3d opencv_gpu)
|
|
|
|
|
2011-05-06 16:05:02 +08:00
|
|
|
FILE(GLOB stitching_files "*.hpp" "*.cpp")
|
2011-05-04 19:09:42 +08:00
|
|
|
|
|
|
|
set(the_target opencv_stitching)
|
|
|
|
add_executable(${the_target} ${stitching_files})
|
|
|
|
|
|
|
|
add_dependencies(${the_target} ${stitching_libs})
|
|
|
|
set_target_properties(${the_target} PROPERTIES
|
|
|
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
2011-05-31 06:13:32 +08:00
|
|
|
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
|
|
|
|
INSTALL_NAME_DIR lib
|
2011-05-04 19:09:42 +08:00
|
|
|
OUTPUT_NAME "opencv_stitching")
|
2011-05-11 21:37:20 +08:00
|
|
|
|
2011-05-17 17:40:06 +08:00
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
2011-05-11 21:37:20 +08:00
|
|
|
set_target_properties(${the_target} PROPERTIES FOLDER "applications")
|
|
|
|
endif()
|
2011-05-04 19:09:42 +08:00
|
|
|
|
|
|
|
target_link_libraries(${the_target} ${stitching_libs})
|
|
|
|
|
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
|