1
0
mirror of synced 2024-11-28 09:30:51 +01:00

build: Copy dependencies of all components on install

This commit is contained in:
WerWolv 2021-12-08 14:25:20 +01:00
parent 95556d35c8
commit 3086f259ff
2 changed files with 5 additions and 5 deletions

View File

@ -54,9 +54,9 @@ add_executable(imhex ${application_type}
set_target_properties(imhex PROPERTIES CXX_VISIBILITY_PRESET hidden)
if (WIN32)
target_link_libraries(imhex dl libimhex wsock32 ws2_32 Dwmapi.lib)
target_link_libraries(imhex PUBLIC dl libimhex wsock32 ws2_32 Dwmapi.lib)
else ()
target_link_libraries(imhex dl libimhex pthread)
target_link_libraries(imhex PUBLIC dl libimhex pthread)
endif ()
createPackage()

View File

@ -199,7 +199,7 @@ macro(createPackage)
INSTALL(CODE "LIST(APPEND DEP_FOLDERS \${PY_PARENT})")
install(CODE [[
file(GET_RUNTIME_DEPENDENCIES
EXECUTABLES $<TARGET_FILE:imhex>
EXECUTABLES $<TARGET_FILE:builtin> $<TARGET_FILE:libimhex> $<TARGET_FILE:imhex>
RESOLVED_DEPENDENCIES_VAR _r_deps
UNRESOLVED_DEPENDENCIES_VAR _u_deps
CONFLICTING_DEPENDENCIES_PREFIX _c_deps
@ -208,10 +208,10 @@ macro(createPackage)
)
if(_u_deps)
message(WARNING "There were unresolved dependencies for binary $<TARGET_FILE:imhex>: \"${_u_deps}\"!")
message(WARNING "There were unresolved dependencies for binary: \"${_u_deps}\"!")
endif()
if(_c_deps_FILENAMES)
message(WARNING "There were conflicting dependencies for library $<TARGET_FILE:imhex>: \"${_c_deps}\"!")
message(WARNING "There were conflicting dependencies for library: \"${_c_deps}\"!")
endif()
foreach(_file ${_r_deps})