mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
53799eb390
Generates zips only at the moment
29 lines
705 B
CMake
29 lines
705 B
CMake
## 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
|
|
)
|
|
|
|
set(SRB2_ASSET_HASHED
|
|
${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
|
|
)
|
|
|
|
foreach(SRB2_ASSET ${SRB2_ASSET_HASHED})
|
|
file(MD5 ${SRB2_ASSET} "SRB2_ASSET_${SRB2_ASSET}_HASH")
|
|
endforeach()
|
|
|
|
# Installation
|
|
|
|
install(FILES ${SRB2_ASSET_ALL}
|
|
DESTINATION .
|
|
)
|