From 3c28d637a9ff5544fda93c664459ffcb70ee44a9 Mon Sep 17 00:00:00 2001 From: Michael Saunders Date: Sun, 11 Apr 2021 13:58:52 +0930 Subject: [PATCH] Copy devilutionx.mpq to the build directory when performing CMake. #1472 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d87c4d0a3..754fcbe84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -399,8 +399,9 @@ endif() add_executable(${BIN_TARGET} WIN32 MACOSX_BUNDLE ${devilutionx_SRCS}) -# Copy the font to the build directory to it works from the build directory +# Copy the font and devilutionx.mpq to the build directory to it works from the build directory file(COPY "Packaging/resources/CharisSILB.ttf" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") +file(COPY "Packaging/resources/devilutionx.mpq" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") # Use file GENERATE instead of configure_file because configure_file # does not support generator expressions.