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.
17 lines
590 B
CMake
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()
|