diff options
| author | John "Lameguy" Wilbert Villamor <lameguy64@gmail.com> | 2021-10-15 09:22:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-15 09:22:45 +0800 |
| commit | dd0f088aaa4c6bf013643be2d1d8621dbffdb000 (patch) | |
| tree | d848d6ce007d8bb9357c8b99d6a0a39ec41d244e /examples/CMakeLists.txt | |
| parent | 9e08d1047fa8deeb3ccb3ce9bb11d69e25a52d56 (diff) | |
| parent | eb719a424e6a16fb64209139a32c9f8a7235a929 (diff) | |
| download | psn00bsdk-dd0f088aaa4c6bf013643be2d1d8621dbffdb000.tar.gz | |
Merge pull request #38 from spicyjpeg/cmake
Full CMake support (in place of makefiles)
Diffstat (limited to 'examples/CMakeLists.txt')
| -rw-r--r-- | examples/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..7cd7e98 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,25 @@ +# PSn00bSDK examples build script +# (C) 2021 spicyjpeg - MPL licensed + +cmake_minimum_required(VERSION 3.21) + +project( + PSn00bSDK-examples + LANGUAGES NONE + DESCRIPTION "PSn00bSDK examples" + HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk" +) + +file( + GLOB_RECURSE _examples + ${PROJECT_SOURCE_DIR}/CMakeLists.txt +) + +foreach(_script IN LISTS _examples) + cmake_path(GET _script PARENT_PATH _dir) + if(_dir STREQUAL PROJECT_SOURCE_DIR) + continue() + endif() + + add_subdirectory(${_dir}) +endforeach() |
