2015-01-28 22:42:05 +00:00
|
|
|
## Assets Target Configuration ##
|
|
|
|
|
|
|
|
# MD5 generation
|
|
|
|
set(SRB2_ASSET_ALL
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/srb2.srb
|
2018-10-18 00:30:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/patch.dta
|
2017-12-24 00:14:06 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gfx.kart
|
2018-11-03 07:17:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/textures.kart
|
2018-10-18 00:30:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/chars.kart
|
2017-12-24 00:14:06 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/maps.kart
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sounds.kart
|
2018-11-16 00:17:06 +00:00
|
|
|
#${CMAKE_CURRENT_SOURCE_DIR}/music.dta
|
2017-12-24 00:14:06 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/music.kart
|
2018-11-25 13:12:34 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/README.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/LICENSE-3RD-PARTY.txt
|
2015-01-28 22:42:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(SRB2_ASSET_HASHED
|
2015-01-29 00:03:41 +00:00
|
|
|
srb2.srb
|
2018-10-18 00:30:34 +00:00
|
|
|
patch.dta
|
2017-12-24 00:14:06 +00:00
|
|
|
gfx.kart
|
2018-11-03 07:17:20 +00:00
|
|
|
textures.kart
|
2018-10-18 00:30:34 +00:00
|
|
|
chars.kart
|
2017-12-24 00:14:06 +00:00
|
|
|
maps.kart
|
2015-01-28 22:42:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
foreach(SRB2_ASSET ${SRB2_ASSET_HASHED})
|
2015-01-29 00:03:41 +00:00
|
|
|
file(MD5 ${CMAKE_CURRENT_SOURCE_DIR}/${SRB2_ASSET} "SRB2_ASSET_${SRB2_ASSET}_HASH")
|
|
|
|
set(SRB2_ASSET_${SRB2_ASSET}_HASH ${SRB2_ASSET_${SRB2_ASSET}_HASH} PARENT_SCOPE)
|
2015-01-28 22:42:05 +00:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
2015-01-29 01:29:16 +00:00
|
|
|
if(CLANG)
|
2015-03-08 08:26:54 +00:00
|
|
|
get_target_property(outname SRB2SDL2 OUTPUT_NAME)
|
2015-01-29 01:29:16 +00:00
|
|
|
install(FILES ${SRB2_ASSET_ALL}
|
|
|
|
DESTINATION "${outname}.app/Contents/Resources"
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
install(FILES ${SRB2_ASSET_ALL}
|
|
|
|
DESTINATION .
|
|
|
|
)
|
|
|
|
endif()
|