freebsd_amp_hwpstate/lib/Headers/CMakeLists.txt

35 lines
747 B
CMake
Raw Normal View History

2009-06-02 17:58:47 +00:00
set(files
2009-06-07 09:21:25 +00:00
emmintrin.h
float.h
iso646.h
limits.h
mm_malloc.h
mmintrin.h
pmmintrin.h
stdarg.h
stdbool.h
stddef.h
stdint.h
tgmath.h
tmmintrin.h
xmmintrin.h)
2009-06-02 17:58:47 +00:00
2009-06-07 09:21:25 +00:00
#FIXME: Centralize Clang version info
set(output_dir ${LLVM_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib/clang/1.0/include)
2009-06-02 17:58:47 +00:00
foreach( f ${files} )
set( src ${CMAKE_CURRENT_SOURCE_DIR}/${f} )
set( dst ${output_dir}/${f} )
add_custom_command(OUTPUT ${dst}
DEPENDS ${src}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
COMMENT "Copying clang's ${f}...")
endforeach( f )
add_custom_target(clang_headers ALL
DEPENDS ${files})
install(FILES ${files}
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
DESTINATION Headers)