Created
March 20, 2014 16:30
-
-
Save hargup/9667962 to your computer and use it in GitHub Desktop.
Sample CMakeList
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 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