Browse Source

CMake: Always copy assets to build directory, fixes example: $ make run

master
Riyyi 2 years ago
parent
commit
c858ef3b1d
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -69,9 +69,10 @@ add_subdirectory("src")
# ------------------------------------------ # ------------------------------------------
# Assets target # Assets target
add_custom_target(${ENGINE}-assets ALL add_custom_target(${ENGINE}-assets
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/copy-assets.cmake COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/copy-assets.cmake
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_dependencies(${ENGINE} ${ENGINE}-assets)
# ------------------------------------------ # ------------------------------------------
# Examples target # Examples target

Loading…
Cancel
Save