mirror of
https://github.com/lubosz/overte.git
synced 2025-08-13 02:45:49 +02:00
fail out if windeployqt is not found
This commit is contained in:
parent
a9fcde6265
commit
1c2606c6db
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@ macro(COPY_DLLS_BESIDE_WINDOWS_EXECUTABLE)
|
||||||
|
|
||||||
find_program(WINDEPLOYQT_COMMAND windeployqt PATHS ${QT_DIR}/bin NO_DEFAULT_PATH)
|
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 a post-build command to call windeployqt to copy Qt plugins
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${TARGET_NAME}
|
TARGET ${TARGET_NAME}
|
||||||
|
|
Loading…
Reference in a new issue