summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: fb934bd72db0d81c7ec53c9742568b6e4b4439c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# See file "BUILD" for instructions

cmake_minimum_required (VERSION 2.6)
project (vecmathlib)

add_executable (example example.cc)
add_executable (loop loop.cc)
add_executable (test test.cc)
add_executable (bench bench.cc)

# GCC:
set (CMAKE_CXX "g++")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=gnu++11 -march=native -Ofast")

# Clang:
# set (CMAKE_CXX "clang++")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=gnu++11 -march=native -O4")
OpenPOWER on IntegriCloud