aboutsummaryrefslogtreecommitdiff
path: root/examples/mdec/mdecimage/CMakeLists.txt
diff options
context:
space:
mode:
authorJohn "Lameguy" Wilbert Villamor <lameguy64@gmail.com>2022-03-25 09:22:20 +0800
committerGitHub <noreply@github.com>2022-03-25 09:22:20 +0800
commit975e614b3c840e2f717adac1d1cb9cee4e5e561b (patch)
tree6584ce5b0dbe27a466c95c81fac61b0d90f627bd /examples/mdec/mdecimage/CMakeLists.txt
parent05d44488bd5587786f4bd0286fc0f555c79aa46a (diff)
parent45168ae43e29aa5930ee5a206475ae836078915f (diff)
downloadpsn00bsdk-975e614b3c840e2f717adac1d1cb9cee4e5e561b.tar.gz
Merge pull request #46 from spicyjpeg/psxmdec
Critical ldscript fixes, initial MDEC support and CI updates
Diffstat (limited to 'examples/mdec/mdecimage/CMakeLists.txt')
-rw-r--r--examples/mdec/mdecimage/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/mdec/mdecimage/CMakeLists.txt b/examples/mdec/mdecimage/CMakeLists.txt
new file mode 100644
index 0000000..b76adb4
--- /dev/null
+++ b/examples/mdec/mdecimage/CMakeLists.txt
@@ -0,0 +1,20 @@
+# PSn00bSDK example CMake script
+# (C) 2021 spicyjpeg - MPL licensed
+
+cmake_minimum_required(VERSION 3.20)
+
+project(
+ mdecimage
+ LANGUAGES C ASM
+ VERSION 1.0.0
+ DESCRIPTION "PSn00bSDK MDEC static image example"
+ HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk"
+)
+
+file(GLOB _sources *.c)
+psn00bsdk_add_executable(mdecimage STATIC ${_sources})
+#psn00bsdk_add_cd_image(mdecimage_iso mdecimage iso.xml DEPENDS mdecimage)
+
+psn00bsdk_target_incbin(mdecimage PRIVATE mdec_image image.bin)
+
+install(FILES ${PROJECT_BINARY_DIR}/mdecimage.exe TYPE BIN)