mirror of
https://github.com/aap/librw.git
synced 2025-12-18 16:39:51 +00:00
cmake: copy assets to build dir
This commit is contained in:
@@ -6,3 +6,8 @@ target_link_libraries(playgound
|
||||
PUBLIC
|
||||
librw librw_skeleton
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
TARGET playgound POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/teapot.dff" "${CMAKE_CURRENT_SOURCE_DIR}/maze.tga" "${CMAKE_CURRENT_SOURCE_DIR}/Bm437_IBM_VGA8.FON" "${CMAKE_CURRENT_SOURCE_DIR}/Bm437_IBM_BIOS.FON" "$<TARGET_FILE_DIR:playground>"
|
||||
)
|
||||
|
||||
@@ -258,7 +258,7 @@ InitRW(void)
|
||||
tex = rw::Texture::read("maze", nil);
|
||||
tex2 = rw::Texture::read("checkers", nil);
|
||||
|
||||
const char *filename = "teapot2.dff";
|
||||
const char *filename = "teapot.dff";
|
||||
if(sk::args.argc > 1)
|
||||
filename = sk::args.argv[1];
|
||||
rw::StreamFile in;
|
||||
|
||||
Reference in New Issue
Block a user