1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00
antelope-keygen/gui/cmake/cmake_install_qt.cmake.in

23 lines
631 B
CMake

# Custom script that installs Qt runtime files.
if (EXISTS @_QT_INSTALL_CONFIG_DEPFILE@)
file(STRINGS @_QT_INSTALL_CONFIG_DEPFILE@ _lines)
# First line is the output path.
list(GET _lines 0 BASE_PATH)
# Rest of the lines are the files relative to the path.
list(SUBLIST _lines 1 -1 FILES)
foreach(file ${FILES})
get_filename_component(rel_path ${file} DIRECTORY BASE_DIR ${BASE_PATH})
set(install_path ${CMAKE_INSTALL_PREFIX}/@CMAKE_INSTALL_BINDIR@)
if (rel_path)
set(install_path "${install_path}/${rel_path}")
endif()
file(INSTALL ${BASE_PATH}/${file} DESTINATION ${install_path})
endforeach()
endif()