cmake: Fixes for Qt6 on Windows.
This commit is contained in:
parent
96e2f1f95e
commit
dbee810a04
|
@ -10,8 +10,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "QT_DIR",
|
"name": "CMAKE_PREFIX_PATH",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64\\lib\\cmake\\Qt6"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "QT_DIR",
|
"name": "CMAKE_PREFIX_PATH",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64\\lib\\cmake\\Qt6"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -40,8 +40,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "QT_DIR",
|
"name": "CMAKE_PREFIX_PATH",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64\\lib\\cmake\\Qt6"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMAKE_SYSTEM_NAME",
|
"name": "CMAKE_SYSTEM_NAME",
|
||||||
|
@ -63,8 +63,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "QT_DIR",
|
"name": "CMAKE_PREFIX_PATH",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64\\lib\\cmake\\Qt6"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMAKE_SYSTEM_NAME",
|
"name": "CMAKE_SYSTEM_NAME",
|
||||||
|
|
|
@ -427,6 +427,13 @@ if(WIN32)
|
||||||
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
||||||
find_program(WINDEPLOYQT_EXE windeployqt HINTS "${QT_BINARY_DIRECTORY}")
|
find_program(WINDEPLOYQT_EXE windeployqt HINTS "${QT_BINARY_DIRECTORY}")
|
||||||
|
|
||||||
|
if ("${QT_VERSION_MAJOR}" LESS 6)
|
||||||
|
set(NO_ANGLE_PARAM "--no-angle")
|
||||||
|
else()
|
||||||
|
# parameter no longer exists in Qt6
|
||||||
|
set(NO_ANGLE_PARAM "")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Note: We set the PATH for the duration of this command so that the
|
# Note: We set the PATH for the duration of this command so that the
|
||||||
# deployment application is able to locate the Qt libraries to copy.
|
# deployment application is able to locate the Qt libraries to copy.
|
||||||
# if the necessary paths aren't already set beforehand.
|
# if the necessary paths aren't already set beforehand.
|
||||||
|
@ -449,7 +456,7 @@ if(WIN32)
|
||||||
--no-translations
|
--no-translations
|
||||||
--no-compiler-runtime
|
--no-compiler-runtime
|
||||||
--no-system-d3d-compiler
|
--no-system-d3d-compiler
|
||||||
--no-angle
|
"${NO_ANGLE_PARAM}"
|
||||||
--no-opengl-sw
|
--no-opengl-sw
|
||||||
"$<TARGET_FILE:dolphin-emu>"
|
"$<TARGET_FILE:dolphin-emu>"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue