Skip to content

Instantly share code, notes, and snippets.

@hargup
Created March 20, 2014 16:30
Show Gist options
  • Save hargup/9667962 to your computer and use it in GitHub Desktop.
Save hargup/9667962 to your computer and use it in GitHub Desktop.
Sample CMakeList
cmake_minimum_required(VERSION 2.8)
project( DisplayImage )
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wextra -pedantic -g -O3 -std=c++0x")
endif()
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIR} )
add_executable(hog hog.cpp )
target_link_libraries( hog ${OpenCV_LIBS} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment