Use fixup_bundle
on Windows as well
This commit is contained in:
@@ -230,6 +230,7 @@ if(APPLE)
|
|||||||
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/86Box.app\" \"\" \"\")"
|
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/86Box.app\" \"\" \"\")"
|
||||||
COMPONENT Runtime)
|
COMPONENT Runtime)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Install our dependencies if using vcpkg
|
# Install our dependencies if using vcpkg
|
||||||
@@ -237,6 +238,17 @@ if(VCPKG_TOOLCHAIN)
|
|||||||
x_vcpkg_install_local_dependencies(TARGETS 86Box DESTINATION ".")
|
x_vcpkg_install_local_dependencies(TARGETS 86Box DESTINATION ".")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
# Install other dependencies
|
||||||
|
if(WIN32)
|
||||||
|
install(CODE "
|
||||||
|
include(BundleUtilities)
|
||||||
|
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE \${CMAKE_INSTALL_PREFIX} ABSOLUTE)
|
||||||
|
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/$<TARGET_FILE_NAME:86Box>\" \"\" \"\")"
|
||||||
|
COMPONENT Runtime)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Install the PDB file on Windows builds
|
# Install the PDB file on Windows builds
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# CMake fully supports PDB files on MSVC-compatible compilers
|
# CMake fully supports PDB files on MSVC-compatible compilers
|
||||||
|
Reference in New Issue
Block a user