From cd63039de8375a28b9cf69d73ff504f459e6032b Mon Sep 17 00:00:00 2001 From: Augustin Date: Wed, 3 Apr 2024 19:47:40 +0200 Subject: [PATCH] Update CMakeLists for windows --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67d11a6..84e588c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,10 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) +set(ZSTD_TAG release) +set(ZLIB_TAG develop) +set(MZ_FORCE_FETCH_LIBS ON) + find_package(Qt5 COMPONENTS Core Gui @@ -43,3 +47,13 @@ target_link_libraries(SnakeQT Qt5::Network minizip ) + +add_custom_command( + TARGET SnakeQT POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ +) \ No newline at end of file