2008-10-26 08:56:18 +08:00
|
|
|
set(files
|
2009-06-07 15:09:23 +08: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)
|
2008-10-26 08:56:18 +08:00
|
|
|
|
2009-06-17 04:13:51 +08:00
|
|
|
if (MSVC_IDE OR XCODE)
|
2009-08-23 13:28:29 +08:00
|
|
|
set(output_dir ${LLVM_BINARY_DIR}/bin/lib/clang/${CLANG_VERSION}/include)
|
2009-06-17 04:13:51 +08:00
|
|
|
else ()
|
2009-08-23 13:28:29 +08:00
|
|
|
set(output_dir ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include)
|
2009-06-17 04:13:51 +08:00
|
|
|
endif ()
|
|
|
|
|
2008-10-26 08:56:18 +08: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 )
|
|
|
|
|
2009-06-25 13:07:31 +08:00
|
|
|
add_custom_target(clang-headers ALL
|
2008-10-26 08:56:18 +08:00
|
|
|
DEPENDS ${files})
|
|
|
|
|
|
|
|
install(FILES ${files}
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
2009-08-23 13:28:29 +08:00
|
|
|
DESTINATION lib/clang/${CLANG_VERSION}/include)
|