From 46b2a00f50d3b3a304bb990e137c8b2da3d24b21 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sat, 9 Oct 2021 20:50:20 +0200 Subject: [PATCH] If SMPQ isn't available copy assets folder to output --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 545c40917..b99941e04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -768,6 +768,9 @@ if(SMPQ) COMMAND ${SMPQ} -M 1 -C PKWARE -c "../devilutionx.mpq" ${devilutionx_assets}) # Copy devilutionx.mpq to the build directory so the game can run from the build directory file(COPY "Packaging/resources/devilutionx.mpq" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") +else() + # Copy assets to the build directory so the game can load them from the build directory + file(COPY "${DevilutionX_SOURCE_DIR}/Packaging/resources/assets/" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/assets") endif() target_include_directories(libdevilutionx PUBLIC