aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-20 01:09:33 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-20 01:09:33 +0100
commit9b00e5f7ff163a8fc6f341dbf237d90c61dadddc (patch)
treed20c80fbd4f5a5d1d3972669625972cea6b3684d /CMakeLists.txt
parent853fa4eed241cdd87b8c2d2e60cf755509d9a184 (diff)
downloadpsn00bsdk-9b00e5f7ff163a8fc6f341dbf237d90c61dadddc.tar.gz
Fixed macOS installation bug, updated INSTALL.md
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 14 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e6eefd..87980a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,12 +98,21 @@ ExternalProject_Add(
# Install all files in the temporary installation tree, as well as static files
# from the source tree, when "cmake --install" is invoked.
-install(
- DIRECTORY ${PROJECT_BINARY_DIR}/install_tree/ # THE TRAILING SLASH IS IMPORTANT
- DESTINATION .
- COMPONENT sdk
- USE_SOURCE_PERMISSIONS
+foreach(
+ _subdir IN ITEMS
+ ${CMAKE_INSTALL_BINDIR}
+ ${CMAKE_INSTALL_LIBDIR}
+ ${CMAKE_INSTALL_DATADIR}
)
+ install(
+ # THE TRAILING SLASH IS IMPORTANT
+ DIRECTORY ${PROJECT_BINARY_DIR}/install_tree/${_subdir}/
+ DESTINATION ${_subdir}
+ COMPONENT sdk
+ USE_SOURCE_PERMISSIONS
+ )
+endforeach()
+
install(
DIRECTORY doc template
DESTINATION ${CMAKE_INSTALL_DATADIR}/psn00bsdk