brintos

brintos / llvm-project-archived public Read only

0
0
Text · 969 B · 6796d67 Raw
33 lines · plain
1set(files2    __libunwind_config.h3    libunwind.h4    libunwind.modulemap5    mach-o/compact_unwind_encoding.h6    unwind_arm_ehabi.h7    unwind_itanium.h8    unwind.h9    )10 11add_library(unwind-headers INTERFACE)12target_include_directories(unwind-headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})13 14if(LIBUNWIND_INSTALL_HEADERS)15  foreach(file ${files})16    get_filename_component(dir ${file} DIRECTORY)17    install(FILES ${file}18      DESTINATION "${LIBUNWIND_INSTALL_INCLUDE_DIR}/${dir}"19      COMPONENT unwind-headers20      PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ21    )22  endforeach()23 24  if(NOT CMAKE_CONFIGURATION_TYPES)25    add_custom_target(install-unwind-headers26      DEPENDS unwind-headers27      COMMAND "${CMAKE_COMMAND}"28              -DCMAKE_INSTALL_COMPONENT=unwind-headers29              -P "${LIBUNWIND_BINARY_DIR}/cmake_install.cmake")30    add_custom_target(install-unwind-headers-stripped DEPENDS install-unwind-headers)31  endif()32endif()33