fix build issues on Windows, add automatic deploy for Windows

This commit is contained in:
Skarn
2022-02-03 12:02:24 +03:00
parent 433be0a46d
commit 036fe1bda6
3 changed files with 9 additions and 2 deletions

View File

@@ -363,6 +363,12 @@ add_custom_command(TARGET noggit POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove -f
$<TARGET_FILE_DIR:noggit>/definitions/.git)
# deploy for Qt on Windows
IF(WIN32)
include(windeployqt)
windeployqt(noggit)
ENDIF()
SET_PROPERTY(TARGET noggit PROPERTY AUTOMOC ON)
IF(APPLE)
@@ -422,3 +428,4 @@ IF(NOGGIT_LOGTOCONSOLE AND WIN32)
ENDIF()
includePlatform("pack")