2015-01-28 22:42:05 +00:00
|
|
|
## Assets Target Configuration ##
|
|
|
|
|
|
|
|
# MD5 generation
|
|
|
|
set(SRB2_ASSET_ALL
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/srb2.srb
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/player.dta
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rings.dta
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/zones.dta
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/patch.dta
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/music.dta
|
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
|
|
|
|
player.dta
|
|
|
|
rings.dta
|
|
|
|
zones.dta
|
|
|
|
patch.dta
|
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()
|