-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f74bfe
commit f8725fe
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
set(CMAKE_CONFIGURATION_TYPES Release) | ||
project( CF ) | ||
find_package( OpenCV REQUIRED ) | ||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "set build type to release") | ||
include_directories( ${OpenCV_INCLUDE_DIRS} ) | ||
add_executable( CF main.cpp ) | ||
target_link_libraries( CF ${OpenCV_LIBS} ) | ||
target_link_libraries( CF ${OpenCV_LIBS} ) | ||
set(CMAKE_BUILD_TYPE Release) | ||
if(CMAKE_COMPILER_IS_GNUCXX) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native") ## Optimize | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUC) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -march=native") ## Optimize | ||
endif() | ||
if(MSVC) | ||
|
||
endif(MSVC) |
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