1*0faf1914Srobertset(files 2*0faf1914Srobert __libunwind_config.h 3*0faf1914Srobert libunwind.h 4*0faf1914Srobert libunwind.modulemap 5*0faf1914Srobert mach-o/compact_unwind_encoding.h 6*0faf1914Srobert mach-o/compact_unwind_encoding.modulemap 7*0faf1914Srobert unwind_arm_ehabi.h 8*0faf1914Srobert unwind_itanium.h 9*0faf1914Srobert unwind.h 10*0faf1914Srobert ) 11*0faf1914Srobert 12*0faf1914Srobertadd_library(unwind-headers INTERFACE) 13*0faf1914Sroberttarget_include_directories(unwind-headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) 14*0faf1914Srobert 15*0faf1914Srobertif(LIBUNWIND_INSTALL_HEADERS) 16*0faf1914Srobert foreach(file ${files}) 17*0faf1914Srobert get_filename_component(dir ${file} DIRECTORY) 18*0faf1914Srobert install(FILES ${file} 19*0faf1914Srobert DESTINATION "${LIBUNWIND_INSTALL_INCLUDE_DIR}/${dir}" 20*0faf1914Srobert COMPONENT unwind-headers 21*0faf1914Srobert PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ 22*0faf1914Srobert ) 23*0faf1914Srobert endforeach() 24*0faf1914Srobert 25*0faf1914Srobert if(NOT CMAKE_CONFIGURATION_TYPES) 26*0faf1914Srobert add_custom_target(install-unwind-headers 27*0faf1914Srobert DEPENDS unwind-headers 28*0faf1914Srobert COMMAND "${CMAKE_COMMAND}" 29*0faf1914Srobert -DCMAKE_INSTALL_COMPONENT=unwind-headers 30*0faf1914Srobert -P "${LIBUNWIND_BINARY_DIR}/cmake_install.cmake") 31*0faf1914Srobert add_custom_target(install-unwind-headers-stripped DEPENDS install-unwind-headers) 32*0faf1914Srobert endif() 33*0faf1914Srobertendif() 34