aboutsummaryrefslogtreecommitdiff
path: root/examples/sound/spustream/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sound/spustream/CMakeLists.txt')
-rw-r--r--examples/sound/spustream/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/sound/spustream/CMakeLists.txt b/examples/sound/spustream/CMakeLists.txt
new file mode 100644
index 0000000..91243cf
--- /dev/null
+++ b/examples/sound/spustream/CMakeLists.txt
@@ -0,0 +1,29 @@
+# PSn00bSDK example CMake script
+# (C) 2021 spicyjpeg - MPL licensed
+
+cmake_minimum_required(VERSION 3.20)
+
+if(NOT DEFINED CMAKE_TOOLCHAIN_FILE AND DEFINED ENV{PSN00BSDK_LIBS})
+ set(CMAKE_TOOLCHAIN_FILE $ENV{PSN00BSDK_LIBS}/cmake/sdk.cmake)
+endif()
+
+project(
+ spustream
+ LANGUAGES C
+ VERSION 1.0.0
+ DESCRIPTION "PSn00bSDK SPU custom streaming example"
+ HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk"
+)
+
+# TODO: add rules to actually generate a valid STREAM.BIN file
+file(GLOB _sources *.c)
+psn00bsdk_add_executable(spustream STATIC ${_sources})
+#psn00bsdk_add_cd_image(spustream_iso spustream iso.xml DEPENDS spustream)
+
+install(
+ FILES
+ #${PROJECT_BINARY_DIR}/spustream.bin
+ #${PROJECT_BINARY_DIR}/spustream.cue
+ ${PROJECT_BINARY_DIR}/spustream.exe
+ TYPE BIN
+)