Skip to content

Instantly share code, notes, and snippets.

@coder-ghw
Last active October 26, 2023 07:06
Show Gist options
  • Save coder-ghw/b6e4d532028c366036ae04511f660f51 to your computer and use it in GitHub Desktop.
Save coder-ghw/b6e4d532028c366036ae04511f660f51 to your computer and use it in GitHub Desktop.
cmake
cmake_minimum_required(VERSION 2.8)
project(sample-testcv)
#这里使用 NO_DEFAULT_PATH 可以避免自动识别到安装的路径
find_package( OpenCV REQUIRED PATHS "/home/guohw/projects/opencv-all/build" NO_DEFAULT_PATH)
include_directories( ${OpenCV_INCLUDE_DIRS} )
message("opencv dir: " ${OpenCV_INCLUDE_DIRS})
add_executable(test_stereo_quasi test_QuasiDenseStereo.cpp )
target_link_libraries(test_stereo_quasi ${OpenCV_LIBS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment