OpenCV CMake

cmake_minimum_required(VERSION 3.9) project(b2h LANGUAGES CUDA CXX) set(CMAKE_CXX_STANDARD 11) find_package( OpenCV 4.0.1 REQUIRED PATHS "/data/opencv-4.0.1/build/" NO_DEFAULT_PATH) include_directories( ${OpenCV_INCLUDE_DIRS} ) add_executable(b2h main.cu) target_link_libraries( b2h ${OpenCV_LIBS} ) # add_executable(exp exp.cpp) # target_link_libraries( exp ${OpenCV_LIBS} ) # add_executable(contour contour.cpp) # target_link_libraries( contour ${OpenCV_LIBS} )
Sample makefile for OpenCV

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.