aboutsummaryrefslogtreecommitdiff
path: root/examples/system/childexec/CMakeLists.txt
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-10-13 23:21:32 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-10-13 23:21:32 +0200
commitb458ea70700739bf8a64217af369c7ace08fc954 (patch)
tree77281ebd18e5049fcb1c86718854ff3ce91e54c2 /examples/system/childexec/CMakeLists.txt
parent8e92156bc6a977651771d2cf91ac5800a0e9a913 (diff)
downloadpsn00bsdk-b458ea70700739bf8a64217af369c7ace08fc954.tar.gz
Fix dropped IRQs, clean up psxcd and psxetc logging
Diffstat (limited to 'examples/system/childexec/CMakeLists.txt')
-rw-r--r--examples/system/childexec/CMakeLists.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/system/childexec/CMakeLists.txt b/examples/system/childexec/CMakeLists.txt
index 0c25ca4..e542d2a 100644
--- a/examples/system/childexec/CMakeLists.txt
+++ b/examples/system/childexec/CMakeLists.txt
@@ -13,14 +13,14 @@ project(
file(GLOB _sources *.c)
file(GLOB _child_sources child/*.c)
-psn00bsdk_add_executable(parent GPREL ${_sources})
-psn00bsdk_add_executable(child GPREL ${_child_sources})
-#psn00bsdk_add_cd_image(childexec_iso childexec iso.xml DEPENDS parent)
+psn00bsdk_add_executable(childexec GPREL ${_sources})
+psn00bsdk_add_executable(childexec_child GPREL ${_child_sources})
+#psn00bsdk_add_cd_image(childexec_iso childexec iso.xml DEPENDS childexec)
-psn00bsdk_target_incbin(parent PRIVATE ball16c ball16c.tim)
+psn00bsdk_target_incbin(childexec PRIVATE ball16c ball16c.tim)
psn00bsdk_target_incbin(
- parent PRIVATE child_exe
- ${PROJECT_BINARY_DIR}/child.exe
+ childexec PRIVATE child_exe
+ ${PROJECT_BINARY_DIR}/childexec_child.exe
)
# Relocate the child executable to a non-default address to prevent it from
@@ -28,9 +28,9 @@ psn00bsdk_target_incbin(
# NOTE: child executables are not position-independent and can't be relocated
# at runtime. If you need your code to be relocatable (e.g. to load it into a
# dynamically-allocated buffer), consider using a DLL instead.
-target_link_options(child PRIVATE -Ttext=0x80030000)
+target_link_options(childexec_child PRIVATE -Ttext=0x80030000)
# Make sure the child executable is built before the parent.
-add_dependencies(parent child)
+add_dependencies(childexec childexec_child)
-install(FILES ${PROJECT_BINARY_DIR}/parent.exe TYPE BIN)
+install(FILES ${PROJECT_BINARY_DIR}/childexec.exe TYPE BIN)