Skip to content

Instantly share code, notes, and snippets.

@takamin
Created October 31, 2014 07:36
Show Gist options
  • Select an option

  • Save takamin/e1ce766f5e5b5f440b21 to your computer and use it in GitHub Desktop.

Select an option

Save takamin/e1ce766f5e5b5f440b21 to your computer and use it in GitHub Desktop.
#
# CMakeLists.txt to generate a Makefile for a simple c++ project using OpenCV.
#
# cmake -D OpenCV_DIR="C:/opencv" ../source
#
cmake_minimum_required(VERSION 2.8)
project( <project-name> )
find_package( OpenCV REQUIRED )
add_executable( <executable-name> cvCascade.cpp )
target_link_libraries( <executable-name> ${OpenCV_LIBS} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment