summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: b72c1bdfb5a0daa50197f3b5b613c3a50e98e595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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_COMPILER "g++")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=gnu++11 -march=native -Ofast")

# Clang:
# Note: This fails to link with -O4
set (CMAKE_CXX_COMPILER "clang++-mp-3.3")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=gnu++11 -stdlib=libc++ -march=native -O3")

# Intel:
# set (CMAKE_CXX_COMPILER "icpc")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11 -fast")
OpenPOWER on IntegriCloud