summaryrefslogtreecommitdiffstats
path: root/lib/Headers/CMakeLists.txt
blob: 3c42167e5a184dae9aa42e2be65c0c9f4ce75230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(files
  iso646.h
  mmintrin.h
  stdarg.h
  stdbool.h
  stddef.h
  )

set(output_dir ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../Headers)

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)
OpenPOWER on IntegriCloud