Files
setec_fs_manager/cmake/QtDeployHelper.cmake
DigiJ 179bb85c4f Initial project scaffold for Setec Partition Wizard
C++17/Qt6 application for disk recovery, repair, flashing, formatting,
and USB security key creation on Windows. Includes CMake build system,
tabbed UI shell with 6 main tabs, core type system with Result<T>
monadic error handling, admin elevation, and dark Catppuccin theme.
2026-03-12 12:54:46 -07:00

17 lines
590 B
CMake

# QtDeployHelper.cmake - Post-build windeployqt integration
function(spw_deploy_qt TARGET)
if(WIN32)
find_program(WINDEPLOYQT windeployqt HINTS "${Qt6_DIR}/../../../bin")
if(WINDEPLOYQT)
add_custom_command(TARGET ${TARGET} POST_BUILD
COMMAND "${WINDEPLOYQT}"
--no-translations
--no-system-d3d-compiler
--no-opengl-sw
"$<TARGET_FILE:${TARGET}>"
COMMENT "Running windeployqt on ${TARGET}..."
)
endif()
endif()
endfunction()