]> git.uio.no Git - u/mrichter/AliRoot.git/blob - Vc/CMakeLists.txt
merge from Vc: simplify avx_sorthelper compilation by reusing vc_compile_for_all_impl...
[u/mrichter/AliRoot.git] / Vc / CMakeLists.txt
1 include("${Vc_CMAKE_MODULES_DIR}/AddTargetProperty.cmake")
2
3 include_directories("${Vc_INCLUDE_DIR}")
4
5 string(REPLACE "-Weffc++" "" CXXFLAGS "${CXXFLAGS}")
6 set(libvc_compile_flags "-DVC_COMPILE_LIB ${CXXFLAGS} -O3 ${Vc_DEFINITIONS}")
7 vc_compile_for_all_implementations(_objs src/trigonometric.cpp FLAGS ${libvc_compile_flags}
8       ONLY SSE2 SSE3 SSSE3 SSE4_1 AVX SSE+XOP+FMA4 AVX+XOP+FMA4)
9 vc_compile_for_all_implementations(_objs src/avx_sorthelper.cpp FLAGS ${libvc_compile_flags} ONLY AVX)
10 set(_srcs src/const.cpp src/cpuid.cpp src/support.cpp ${_objs})
11 add_library(Vc STATIC ${_srcs})
12 add_target_property(Vc COMPILE_FLAGS ${libvc_compile_flags})
13
14 # vim: ft=cmake sw=3 et