From a2da2debfde1d44338d203aa4d56e485c4bb16ae Mon Sep 17 00:00:00 2001 From: spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> Date: Sun, 20 Feb 2022 20:55:27 +0100 Subject: Add psn00bsdk_target_incbin() CMake function --- libpsn00b/CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libpsn00b/CMakeLists.txt') diff --git a/libpsn00b/CMakeLists.txt b/libpsn00b/CMakeLists.txt index 829a2f7..f9c4f9d 100644 --- a/libpsn00b/CMakeLists.txt +++ b/libpsn00b/CMakeLists.txt @@ -73,8 +73,17 @@ install( # Generate build.json. This file is used to determine the SDK version after # installation and may contain additional metadata about the build. -configure_file( - build.json.template build.json +file( + CONFIGURE + OUTPUT build.json + CONTENT [[{ + "version": "${PSN00BSDK_VERSION}", + "build_date": "${PSN00BSDK_BUILD_DATE}", + "git_tag": "${PSN00BSDK_GIT_TAG}", + "git_commit": "${PSN00BSDK_GIT_COMMIT}", + "cmake_version": "${CMAKE_VERSION}", + "host_system": "${CMAKE_HOST_SYSTEM_NAME}" +}]] ESCAPE_QUOTES NEWLINE_STYLE LF ) -- cgit v1.2.3