From 6d9ceda63aefe8910e798b6b38a7783d00b855f1 Mon Sep 17 00:00:00 2001 From: spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> Date: Sun, 28 Nov 2021 17:40:48 +0100 Subject: Refactor libpsn00b CMake scripts, move include directory --- libpsn00b/CMakeLists.txt | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'libpsn00b/CMakeLists.txt') 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 ) -- cgit v1.2.3