memcpy: hide some memory latencies
[nova-simd.git] / CMakeLists.txt
blobd7dbcda58bd176567a05cbe347b27aaafad921f9
1 cmake_minimum_required (VERSION 2.8)
2 project (nova-simd)
4 include(CTest)
5 enable_testing()
7 option(NATIVE "compile on gcc with -march=native" OFF)
8 option(BENCHMARKS "compile benchmarks" OFF)
10 file (GLOB_RECURSE headers *hpp)
12 if(CMAKE_COMPILER_IS_GNUCXX)
13     if (NATIVE)
14         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
15     endif()
16     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-1000")
17 endif()
19 if(BENCHMARKS)
20   add_subdirectory (benchmarks)
21 endif()
22 add_subdirectory (testsuite)