Skip to content

Instantly share code, notes, and snippets.

@walsvid
Created June 7, 2016 07:38
Show Gist options
  • Save walsvid/c7551f9f8be853f6fcae96e6485d361e to your computer and use it in GitHub Desktop.
Save walsvid/c7551f9f8be853f6fcae96e6485d361e to your computer and use it in GitHub Desktop.
CMake-Template-OpenCV
cmake_minimum_required(VERSION 3.5)
project(opencvtest)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package(OpenCV REQUIRED)
include_directories(${OPENCV_INCLUDE_DIR})
set(SOURCE_FILES)
add_executable(opencvtest ${SOURCE_FILES})
target_link_libraries(opencvtest ${OpenCV_LIBS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment