added slewing correction by data
[u/mrichter/AliRoot.git] / Vc / CMakeLists.txt
CommitLineData
c017a39f 1include("${Vc_CMAKE_MODULES_DIR}/AddTargetProperty.cmake")
f22341db 2
7c616f25 3include_directories("${Vc_INCLUDE_DIR}")
f22341db 4
c017a39f 5string(REPLACE "-Weffc++" "" CXXFLAGS "${CXXFLAGS}")
37eef766 6
7set(libvc_compile_flags "-DVC_COMPILE_LIB ${CXXFLAGS} -O3")
8vc_compile_for_all_implementations(_objs0 src/trigonometric.cpp FLAGS ${libvc_compile_flags}
c017a39f 9 ONLY SSE2 SSE3 SSSE3 SSE4_1 AVX SSE+XOP+FMA4 AVX+XOP+FMA4)
37eef766 10vc_compile_for_all_implementations(_objs1 src/avx_sorthelper.cpp FLAGS ${libvc_compile_flags} ONLY AVX)
11set(_srcs src/const.cpp src/cpuid.cpp src/support.cpp ${_objs0} ${_objs1})
c017a39f 12add_library(Vc STATIC ${_srcs})
37eef766 13add_target_property(Vc COMPILE_FLAGS "${libvc_compile_flags} ${Vc_DEFINITIONS}")
f22341db 14
15# vim: ft=cmake sw=3 et