Added post build cmake command to copy assets to build directory.

master^2
Barney Wilks 2018-07-08 23:20:21 +01:00
parent 5c91d808d2
commit 6b21a737e9
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,13 @@ set(libdeps ${CMAKE_CURRENT_LIST_DIR}/../qub3d-libdeps)
include_directories(${libdeps}/glm)
include_directories(${libdeps}/SDL2/include)
add_custom_command(TARGET ${project_name} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E
copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/assets/"
"${CMAKE_CURRENT_BINARY_DIR}/assets/"
)
if(UNIX)
target_link_libraries(${project_name}
${libdeps}/SDL2/build/libSDL2-2.0.so