Move data folder into example directory
BIN
data/font.fp
|
@ -67,6 +67,8 @@ engine::engine(const int argc, char* argv[]) {
|
|||
console::register_command("quit", console::argument_format(0), [this](const console::arguments&) {
|
||||
quit();
|
||||
});
|
||||
|
||||
console::load_cfg(prism::app_domain / "render_options.cfg");
|
||||
|
||||
for(int i = 0; i < argc; i++)
|
||||
command_line_arguments.emplace_back(argv[i]);
|
||||
|
|
Before Width: | Height: | Size: 211 KiB After Width: | Height: | Size: 211 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 389 KiB After Width: | Height: | Size: 389 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 213 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
@ -44,14 +44,6 @@ add_platform(
|
|||
)
|
||||
|
||||
function(add_platform_commands target)
|
||||
if(NOT SKIP_DATA)
|
||||
if(ENABLE_MACOS)
|
||||
add_custom_command(TARGET ${target} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data $<TARGET_FILE_DIR:${target}>/../Resources/data)
|
||||
else()
|
||||
add_custom_command(TARGET ${target} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data $<TARGET_FILE_DIR:${target}>/data)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# we HAVE to create this dummy target to convince CMake to properly copy over shader files.
|
||||
# before you ask, we have used POST_BUILD before but that only runs if the TARGET specified is built.
|
||||
# when you change a shader source file on disk, BuildShaders is triggered but that doesn't retrigger your actual
|
||||
|
@ -72,7 +64,12 @@ function(add_platform_commands target)
|
|||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_BINARY_DIR}/shaders $<TARGET_FILE_DIR:${target}>/shaders
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
add_dependencies(${target} ${DUMMY_NAME})
|
||||
|
||||
if(NOT SKIP_DATA)
|
||||
add_custom_target(${target}_copy_assets
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory /home/josh/Development/prism/example/data/ ${CMAKE_BINARY_DIR}/bin/data
|
||||
)
|
||||
add_dependencies(${target} ${target}_copy_assets)
|
||||
endif()
|
||||
endfunction()
|
||||
|
|