Created
June 7, 2016 07:38
-
-
Save walsvid/c7551f9f8be853f6fcae96e6485d361e to your computer and use it in GitHub Desktop.
CMake-Template-OpenCV
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 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