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