mirror of
https://github.com/sigonasr2/hamster.git
synced 2025-04-22 07:54:24 -05:00
copy web assets to the build directory
This commit is contained in:
parent
6279dac525
commit
82970e8d12
@ -278,6 +278,21 @@ if (EMSCRIPTEN)
|
|||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
ARGS -E rename ${CMAKE_BINARY_DIR}/bin/${OutputExecutable}.html ${CMAKE_BINARY_DIR}/bin/index.html
|
ARGS -E rename ${CMAKE_BINARY_DIR}/bin/${OutputExecutable}.html ${CMAKE_BINARY_DIR}/bin/index.html
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
TARGET ${OutputExecutable}
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
ARGS -E make_directory ${CMAKE_BINARY_DIR}/bin/web-assets
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
TARGET ${OutputExecutable}
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/web-assets/*.* ${CMAKE_BINARY_DIR}/bin/web-assets/
|
||||||
|
)
|
||||||
|
|
||||||
endif() # Emscripten
|
endif() # Emscripten
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user