mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Update CMakeLists.txt
Untested, make windeployqt run at installtime Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
parent
b71eeaaa6c
commit
aa48c7ef87
@ -682,17 +682,16 @@ install(TARGETS isle ${install_extra_targets}
|
|||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
find_program(WINDEPLOYQT_EXECUTABLE windeployqt)
|
find_program(WINDEPLOYQT_EXECUTABLE windeployqt)
|
||||||
if(WINDEPLOYQT_EXECUTABLE)
|
if(WINDEPLOYQT_EXECUTABLE)
|
||||||
add_custom_command(TARGET isle-config POST_BUILD
|
install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\")
|
||||||
COMMAND "${WINDEPLOYQT_EXECUTABLE}"
|
execute_process(COMMAND \"${WINDEPLOYQT_EXECUTABLE}\"
|
||||||
"$<TARGET_FILE:isle-config>"
|
\"$<TARGET_FILE:isle-config>\"
|
||||||
"--dir"
|
--dir QTLibs
|
||||||
"QTLibs"
|
--no-compiler-runtime
|
||||||
"--no-compiler-runtime"
|
--no-opengl-sw
|
||||||
"--no-opengl-sw"
|
--no-system-d3d-compiler
|
||||||
"--no-system-d3d-compiler"
|
--no-translations
|
||||||
"--no-translations"
|
--no-quick-import
|
||||||
"--no-quick-import"
|
)"
|
||||||
COMMENT "Running windeployqt with minimal dependencies"
|
|
||||||
)
|
)
|
||||||
install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
else()
|
else()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user