mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 08:20:02 -05:00
@@ -287,6 +287,17 @@ macro(createPackage)
|
||||
list(APPEND PLUGIN_TARGET_FILES "$<TARGET_FILE:${plugin}>")
|
||||
endforeach ()
|
||||
|
||||
if (DEFINED VCPKG_TARGET_TRIPLET)
|
||||
set(VCPKG_DEPS_FOLDER "")
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(VCPKG_DEPS_FOLDER "${CMAKE_BINARY_DIR}/vcpkg_installed/${VCPKG_TARGET_TRIPLET}/debug/bin")
|
||||
else()
|
||||
set(VCPKG_DEPS_FOLDER "${CMAKE_BINARY_DIR}/vcpkg_installed/${VCPKG_TARGET_TRIPLET}/bin")
|
||||
endif()
|
||||
|
||||
install(CODE "set(VCPKG_DEPS_FOLDER \"${VCPKG_DEPS_FOLDER}\")")
|
||||
endif()
|
||||
|
||||
# Grab all dynamically linked dependencies.
|
||||
install(CODE "set(CMAKE_INSTALL_BINDIR \"${CMAKE_INSTALL_BINDIR}\")")
|
||||
install(CODE "set(PLUGIN_TARGET_FILES \"${PLUGIN_TARGET_FILES}\")")
|
||||
@@ -300,10 +311,15 @@ macro(createPackage)
|
||||
POST_EXCLUDE_REGEXES ".*system32/.*\\.dll"
|
||||
)
|
||||
|
||||
if(_c_deps_FILENAMES)
|
||||
if(_c_deps_FILENAMES AND NOT _c_deps STREQUAL "")
|
||||
message(WARNING "Conflicting dependencies for library: \"${_c_deps}\"!")
|
||||
endif()
|
||||
|
||||
if (DEFINED VCPKG_DEPS_FOLDER)
|
||||
file(GLOB VCPKG_DEPS "${VCPKG_DEPS_FOLDER}/*.dll")
|
||||
list(APPEND _r_deps ${VCPKG_DEPS})
|
||||
endif()
|
||||
|
||||
foreach(_file ${_r_deps})
|
||||
file(INSTALL
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}"
|
||||
|
||||
Reference in New Issue
Block a user