*** V interface for TPCCalibTasks ***
[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
7 set(libvc_compile_flags "-DVC_COMPILE_LIB ${CXXFLAGS} -O3")
8 vc_compile_for_all_implementations(_objs0 src/trigonometric.cpp FLAGS ${libvc_compile_flags}
9       ONLY SSE2 SSE3 SSSE3 SSE4_1 AVX SSE+XOP+FMA4 AVX+XOP+FMA4)
10 vc_compile_for_all_implementations(_objs1 src/avx_sorthelper.cpp FLAGS ${libvc_compile_flags} ONLY AVX)
11 set(_srcs src/const.cpp src/cpuid.cpp src/support.cpp ${_objs0} ${_objs1})
12 add_library(Vc STATIC ${_srcs})
13 add_target_property(Vc COMPILE_FLAGS "${libvc_compile_flags} ${Vc_DEFINITIONS}")
14
15 # vim: ft=cmake sw=3 et