-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
26 lines (19 loc) · 848 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.0)
project(Robust_Feature_Matching)
# set compiler for using of default gcc via macport (gcc 4.8)
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_C_COMPILER "clang")
# set the release mode for build type
set(CMAKE_BUILD_TYPE "Release")
# set c++ compiler flags -on warning and using of new c++ strandard library ISO 2011 (-std=c++0x)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -std=c++14 -stdlib=libc++ -O3")
# message for set the compiler and its flags and type of build(release)
message ("user define: CMAKE_BUILD_TYPE is ${CMAKE_BUILD_TYPE}")
message ("user define: CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")
message ("user define: CMAKE_CXX_FLAGS_RELEASE is ${CMAKE_CXX_FLAGS_RELEASE}")
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set (BUILD_PREFIX "-d")
else()
set (BUILD_PREFIX "")
endif()
add_subdirectory(src)