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")

2
cmake

Submodule cmake updated: 59b70e0e2c...6c21df1019

View File

@@ -245,7 +245,7 @@ static_assert ( sizeof (mohd_flags) == sizeof (std::uint16_t)
class WMO : public AsyncObject
{
friend class WMORender;
friend class Noggit::Rendering::WMORender;
public:
explicit WMO(BlizzardArchive::Listfile::FileKey const& file_key, Noggit::NoggitRenderContext context );