m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 44ef22369daf39abdd49195d98145b38d823d2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.5)
project(brandes CXX)

option(DEBUG OFF)

if (DEBUG)
    set(CMAKE_BUILD_TYPE DEBUG)
else (DEBUG)
    set(CMAKE_BUILD_TYPE RELEASE)
endif (DEBUG)

set(CMAKE_CXX_FLAGS "-std=c++14")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g")
set(CMAKE_CXX_FLAGS_RELASE "-O3")

set(SOURCE_FILES src/brandes.cc)

add_executable(brandes ${SOURCE_FILES})