aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/CMakeLists.txt
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-28 17:40:48 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-28 17:40:48 +0100
commit6d9ceda63aefe8910e798b6b38a7783d00b855f1 (patch)
treeccff94aa3cbfda72a45f14219cdad97d99d6e9bf /libpsn00b/CMakeLists.txt
parent603b42797c4b0e7a3e2a3cac320daecf1ee34feb (diff)
downloadpsn00bsdk-6d9ceda63aefe8910e798b6b38a7783d00b855f1.tar.gz
Refactor libpsn00b CMake scripts, move include directory
Diffstat (limited to 'libpsn00b/CMakeLists.txt')
-rw-r--r--libpsn00b/CMakeLists.txt21
1 files changed, 19 insertions, 2 deletions
diff --git a/libpsn00b/CMakeLists.txt b/libpsn00b/CMakeLists.txt
index 7b5f7a5..2b2e76d 100644
--- a/libpsn00b/CMakeLists.txt
+++ b/libpsn00b/CMakeLists.txt
@@ -58,12 +58,29 @@ add_custom_command(
## Installation
install(
- TARGETS ${PSN00BSDK_LIBRARIES} ${PSN00BSDK_VIRTUAL_TARGETS}
+ TARGETS ${PSN00BSDK_LIBRARIES}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/libpsn00b
EXPORT libpsn00b
)
install(
- DIRECTORY cmake include ldscripts
+ DIRECTORY cmake ldscripts
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/libpsn00b
+)
+install(
+ DIRECTORY include/
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libpsn00b
+)
+
+# Generate build.json. This file is used to determine the SDK version after
+# installation and may contain additional metadata about the build.
+string(TIMESTAMP PSN00BSDK_BUILD_DATE UTC)
+configure_file(
+ build.json.template build.json
+ ESCAPE_QUOTES
+ NEWLINE_STYLE LF
+)
+install(
+ FILES ${PROJECT_BINARY_DIR}/build.json
DESTINATION ${CMAKE_INSTALL_LIBDIR}/libpsn00b
)