aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
blob: 7cd7e9816059b9aeb7e616193cf6a505e6b61669 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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()