Skip to content
Snippets Groups Projects
Commit f8ee9f6d authored by Lach's avatar Lach
Browse files

CMake: Locate and install SUGOI asset

parent 36c452e0
Branches
No related tags found
No related merge requests found
Pipeline #3973 passed
...@@ -25,6 +25,10 @@ list(TRANSFORM SRB2_ASSETS_DOCS PREPEND "${SRB2_ASSET_DIRECTORY_ABSOLUTE}") ...@@ -25,6 +25,10 @@ list(TRANSFORM SRB2_ASSETS_DOCS PREPEND "${SRB2_ASSET_DIRECTORY_ABSOLUTE}")
# POST-V2.2 NOTE: Do not forget to add patch.pk3 to the end of this list! # POST-V2.2 NOTE: Do not forget to add patch.pk3 to the end of this list!
#################### ####################
set(SRB2_ASSET_SUGOI_EXPRESSION "sl_sugoi.+\\.pk3")
file(STRINGS ../src/d_main.c SRB2_ASSET_SUGOI REGEX ${SRB2_ASSET_SUGOI_EXPRESSION})
string(REGEX MATCH ${SRB2_ASSET_SUGOI_EXPRESSION} SRB2_ASSET_SUGOI ${SRB2_ASSET_SUGOI})
set(SRB2_ASSETS_GAME set(SRB2_ASSETS_GAME
"srb2.pk3" "srb2.pk3"
"player.dta" "player.dta"
...@@ -32,6 +36,7 @@ set(SRB2_ASSETS_GAME ...@@ -32,6 +36,7 @@ set(SRB2_ASSETS_GAME
"patch.pk3" "patch.pk3"
"music.dta" "music.dta"
"models.dat" "models.dat"
${SRB2_ASSET_SUGOI}
) )
list(TRANSFORM SRB2_ASSETS_GAME PREPEND "/") list(TRANSFORM SRB2_ASSETS_GAME PREPEND "/")
list(TRANSFORM SRB2_ASSETS_GAME PREPEND "${SRB2_ASSET_DIRECTORY_ABSOLUTE}") list(TRANSFORM SRB2_ASSETS_GAME PREPEND "${SRB2_ASSET_DIRECTORY_ABSOLUTE}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment