fail out if windeployqt is not found

This commit is contained in:
Stephen Birarda 2015-02-25 13:12:37 -08:00
parent a9fcde6265
commit 1c2606c6db

View file

@ -28,6 +28,10 @@ macro(COPY_DLLS_BESIDE_WINDOWS_EXECUTABLE)
)
find_program(WINDEPLOYQT_COMMAND windeployqt PATHS ${QT_DIR}/bin NO_DEFAULT_PATH)
if (NOT WINDEPLOYQT_COMMAND)
message(FATAL_ERROR "Could not find windeployqt at ${QT_DIR}/bin. windeployqt is required.")
endif ()
# add a post-build command to call windeployqt to copy Qt plugins
add_custom_command(