diff options
Diffstat (limited to 'examples/system/console/CMakeLists.txt')
| -rw-r--r-- | examples/system/console/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/system/console/CMakeLists.txt b/examples/system/console/CMakeLists.txt new file mode 100644 index 0000000..acae08f --- /dev/null +++ b/examples/system/console/CMakeLists.txt @@ -0,0 +1,22 @@ +# PSn00bSDK example CMake script +# (C) 2021 spicyjpeg - MPL licensed + +cmake_minimum_required(VERSION 3.21) + +if(NOT DEFINED CMAKE_TOOLCHAIN_FILE AND DEFINED ENV{PSN00BSDK_LIBS}) + set(CMAKE_TOOLCHAIN_FILE $ENV{PSN00BSDK_LIBS}/cmake/sdk.cmake) +endif() + +project( + console + LANGUAGES C + VERSION 1.0.0 + DESCRIPTION "PSn00bSDK stdio console example" + HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk" +) + +file(GLOB _sources *.c) +psn00bsdk_add_executable(console STATIC ${_sources}) +#psn00bsdk_add_cd_image(console_iso console iso.xml DEPENDS console) + +install(FILES ${PROJECT_BINARY_DIR}/console.exe DESTINATION .) |
