2013-08-29 00:21:27 +02:00
|
|
|
|
2013-08-30 20:06:57 +02:00
|
|
|
|
2013-08-30 23:58:56 +02:00
|
|
|
if(RESDIR_DEFINED)
|
2013-08-30 20:06:57 +02:00
|
|
|
add_custom_target(copy_resources ALL COMMENT "Copying resources")
|
2013-11-02 04:01:48 +01:00
|
|
|
install(FILES
|
|
|
|
${RESDIR}/pak000-Base.pak
|
|
|
|
${RESDIR}/pak001-Sounds.pak
|
|
|
|
${RESDIR}/pak002-Models.pak
|
|
|
|
${RESDIR}/pak010-BaseSkin.pak
|
|
|
|
${RESDIR}pak999-References.pak
|
|
|
|
DESTINATION bin/Resources)
|
|
|
|
|
2013-11-03 00:52:54 +01:00
|
|
|
file(GLOB_RECURSE RESOURCES Shaders/* Scripts/* Icons/* Killfeed/*)
|
2013-10-06 20:36:40 +02:00
|
|
|
foreach(FILE ${RESOURCES})
|
2013-08-30 20:06:57 +02:00
|
|
|
string(REPLACE ${CMAKE_CURRENT_SOURCE_DIR} ${RESDIR} TARGETFILE ${FILE})
|
|
|
|
get_filename_component(TARGETDIR ${TARGETFILE} PATH)
|
|
|
|
add_custom_command(TARGET copy_resources COMMAND ${CMAKE_COMMAND} -E make_directory "${TARGETDIR}")
|
|
|
|
add_custom_command(TARGET copy_resources COMMAND ${CMAKE_COMMAND} -E copy_if_different "${FILE}" "${TARGETFILE}")
|
|
|
|
endforeach()
|
|
|
|
endif()
|
2013-10-06 16:24:43 +02:00
|
|
|
|
2013-10-06 20:36:40 +02:00
|
|
|
install(DIRECTORY "Scripts" DESTINATION bin/Resources)
|
2013-10-06 16:24:43 +02:00
|
|
|
install(DIRECTORY "Shaders" DESTINATION bin/Resources)
|
2014-03-15 23:02:12 +09:00
|
|
|
install(DIRECTORY "Gfx/Killfeed" DESTINATION bin/Resources/Gfx)
|
2013-11-03 00:52:54 +01:00
|
|
|
install(DIRECTORY "Icons" DESTINATION bin/Resources)
|