diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-11 11:17:28 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-11 11:17:28 +0200 |
| commit | 1a468c901a7b473a556c6a572c03c68186f03f89 (patch) | |
| tree | 5791076fd68cac75218786bd95479ad64d606640 /examples | |
| parent | 1b1e9b85a51444751dddc0e94a09d19bd4f0885e (diff) | |
| download | psn00bsdk-1a468c901a7b473a556c6a572c03c68186f03f89.tar.gz | |
Update CMake scripts to use generator expressions
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/lowlevel/cartrom/CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/lowlevel/cartrom/CMakeLists.txt b/examples/lowlevel/cartrom/CMakeLists.txt index 2efe6cf..6a94d9f 100644 --- a/examples/lowlevel/cartrom/CMakeLists.txt +++ b/examples/lowlevel/cartrom/CMakeLists.txt @@ -1,7 +1,7 @@ # PSn00bSDK example CMake script # (C) 2021 spicyjpeg - MPL licensed -cmake_minimum_required(VERSION 3.20) +cmake_minimum_required(VERSION 3.21) project( cartrom @@ -17,9 +17,13 @@ file(GLOB _sources *.c *.s) # executable has to be created manually and converted into raw binary format # (for testing on emulators or flashing to a cheat cartridge). add_executable (cartrom ${_sources}) -target_link_libraries(cartrom psn00bsdk_exe_nogprel) -set_target_properties(cartrom PROPERTIES PREFIX "" SUFFIX ".elf") target_link_options (cartrom PRIVATE -T${PROJECT_SOURCE_DIR}/rom.ld) +set_target_properties( + cartrom PROPERTIES + PREFIX "" + SUFFIX ".elf" + PSN00BSDK_TARGET_TYPE EXECUTABLE_NOGPREL +) target_include_directories(cartrom PRIVATE ${PROJECT_SOURCE_DIR}) |
