From aa48c7ef876957a4a92fae3b046d6b16f9053b3c Mon Sep 17 00:00:00 2001 From: BagelSketches <112355083+BagelSketches@users.noreply.github.com> Date: Sat, 5 Jul 2025 07:43:14 +1000 Subject: [PATCH] Update CMakeLists.txt Untested, make windeployqt run at installtime Co-authored-by: Anonymous Maarten --- CMakeLists.txt | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index efc62728..b4ab3e3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -682,17 +682,16 @@ install(TARGETS isle ${install_extra_targets} if (ISLE_BUILD_CONFIG) find_program(WINDEPLOYQT_EXECUTABLE windeployqt) if(WINDEPLOYQT_EXECUTABLE) - add_custom_command(TARGET isle-config POST_BUILD - COMMAND "${WINDEPLOYQT_EXECUTABLE}" - "$" - "--dir" - "QTLibs" - "--no-compiler-runtime" - "--no-opengl-sw" - "--no-system-d3d-compiler" - "--no-translations" - "--no-quick-import" - COMMENT "Running windeployqt with minimal dependencies" + install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\") + execute_process(COMMAND \"${WINDEPLOYQT_EXECUTABLE}\" + \"$\" + --dir QTLibs + --no-compiler-runtime + --no-opengl-sw + --no-system-d3d-compiler + --no-translations + --no-quick-import + )" ) install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}") else()