Last active
October 26, 2023 07:06
-
-
Save coder-ghw/b6e4d532028c366036ae04511f660f51 to your computer and use it in GitHub Desktop.
cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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