summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/FILES-EXTRA_ISPC_TARGET_OBJECTS.cmake
blob: 91ed4588ddbe0314e1ea70e4ae54d1f9c3037181 (plain)
1
2
3
4
5
6
7
8
enable_language(ISPC)
add_library(objs OBJECT obj1.ispc obj2.ispc)
if("${CMAKE_SYSTEM_NAME};${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Darwin;arm64")
  set_property(TARGET objs PROPERTY ISPC_INSTRUCTION_SETS "neon-i32x4")
else()
  set_property(TARGET objs PROPERTY ISPC_INSTRUCTION_SETS "sse2-i32x4;sse4-i16x8;avx1-i32x16;avx2-i32x4")
endif()
install(FILES $<TARGET_OBJECTS:objs> DESTINATION objs)