summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 8c76176b0d2d652626d319766da6b16e98297fd8 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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)

add_library (instantiations instantiations.cc)



# Generic x86-64:

# # Clang 3.3:
# set (CMAKE_CXX_COMPILER "clang++")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11 -stdlib=libc++ -march=native -O4 -ffast-math")

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

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



# OSX with MacPorts:

# # 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=c++11 -stdlib=libc++ -march=native -O3 -ffast-math")

# # GCC 4.8:
# set (CMAKE_CXX_COMPILER "g++-mp-4.8")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11 -march=native -Ofast")



# PS3:

# # GCC 4.6:
# set (CMAKE_CXX_COMPILER "g++")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++0x -maltivec -Ofast")



add_subdirectory (pocl)
OpenPOWER on IntegriCloud