mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Remove WIN32 bloc
This commit is contained in:
parent
349cf42902
commit
37c4c0bb9c
1 changed files with 1 additions and 15 deletions
|
@ -162,17 +162,3 @@ if (ENABLE_GAMEMODE)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
install(TARGETS astra ${KF6_INSTALL_TARGETS_DEFAULT_ARGS})
|
install(TARGETS astra ${KF6_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
get_target_property(QMAKE_EXE Qt6::qmake IMPORTED_LOCATION)
|
|
||||||
get_filename_component(QT_BIN_DIR "${QMAKE_EXE}" DIRECTORY)
|
|
||||||
|
|
||||||
find_program(WINDEPLOYQT_ENV_SETUP qtenv2.bat HINTS "${QT_BIN_DIR}")
|
|
||||||
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}")
|
|
||||||
|
|
||||||
# Run windeployqt immediately after build
|
|
||||||
add_custom_command(TARGET astra
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:astra>\"
|
|
||||||
)
|
|
||||||
endif ()
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue