Browse Source

If SMPQ isn't available copy assets folder to output

pull/3080/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
46b2a00f50
  1. 3
      CMakeLists.txt

3
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

Loading…
Cancel
Save