Use fixup_bundle
on Windows as well
This commit is contained in:
@@ -179,7 +179,7 @@ endmacro()
|
|||||||
|
|
||||||
# Install our dependencies to the macOS bundle
|
# Install our dependencies to the macOS bundle
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
if (QT)
|
if(QT)
|
||||||
set(prefix "86Box.app/Contents")
|
set(prefix "86Box.app/Contents")
|
||||||
set(INSTALL_RUNTIME_DIR "${prefix}/MacOS")
|
set(INSTALL_RUNTIME_DIR "${prefix}/MacOS")
|
||||||
set(INSTALL_CMAKE_DIR "${prefix}/Resources")
|
set(INSTALL_CMAKE_DIR "${prefix}/Resources")
|
||||||
@@ -229,6 +229,7 @@ if(APPLE)
|
|||||||
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE \${CMAKE_INSTALL_PREFIX} ABSOLUTE)
|
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE \${CMAKE_INSTALL_PREFIX} ABSOLUTE)
|
||||||
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/86Box.app\" \"\" \"\")"
|
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/86Box.app\" \"\" \"\")"
|
||||||
COMPONENT Runtime)
|
COMPONENT Runtime)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
@@ -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