summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-09-17 11:36:53 +0200
committerAki <please@ignore.pl>2022-09-17 11:36:53 +0200
commita382cf3647b8fa8e7bae9d73f0fa9a6d4f680522 (patch)
tree4b3665a025dab9096bc29311edb07ad4a2483142
parent3a35b7cfb4127593127a86b302e668e0e007e58c (diff)
downloadstarshatter-a382cf3647b8fa8e7bae9d73f0fa9a6d4f680522.zip
starshatter-a382cf3647b8fa8e7bae9d73f0fa9a6d4f680522.tar.gz
starshatter-a382cf3647b8fa8e7bae9d73f0fa9a6d4f680522.tar.bz2
Changed to install ogg files directly into the file system
The current implementation of ogg loaded uses exclusively ov_open. The loader will need to be switched to ov_open_callbacks to support loading from the memory.
-rw-r--r--data/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 260c069..4fcd4e3 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,5 +1,6 @@
include(AddDatafile)
include(AddDownloadableResource)
+include(InstallResource)
add_downloadable_resource(
resource_content
SHA1 3b4ffe85a9445e39366c5b503ad192388fab0d55
@@ -33,7 +34,7 @@ add_downloadable_resource(
add_datafile(content RESOURCES resource_content)
add_datafile(shatter RESOURCES resource_shatter)
add_datafile(start RESOURCES resource_start)
-add_datafile(vox SKIP_SOURCE RESOURCES resource_vox_campaign resource_vox_music resource_vox_original)
+add_datafile(vox SKIP_SOURCE RESOURCES resource_vox_original)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/content.dat
@@ -42,3 +43,8 @@ install(
${CMAKE_CURRENT_BINARY_DIR}/vox.dat
DESTINATION ${CMAKE_INSTALL_PREFIX}
)
+install_resource(
+ resource_vox_campaign
+ resource_vox_music
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/
+ )