aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-28 18:15:14 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-28 18:15:14 +0100
commita75b3fa4b1a1b882c33f533645ddae75c09dd697 (patch)
tree2b9bd90c0564b983a35971207116976425288da4 /CMakeLists.txt
parent6d9ceda63aefe8910e798b6b38a7783d00b855f1 (diff)
downloadpsn00bsdk-a75b3fa4b1a1b882c33f533645ddae75c09dd697.tar.gz
Switch to mipsel-none-elf, move docs, add template presets
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 87980a5..720ca8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,11 +26,11 @@ include(GNUInstallDirs)
# These are passed through to libpsn00b and the examples (they are defined in
# the toolchain file).
set(
- PSN00BSDK_TC $ENV{PSN00BSDK_TC}
- CACHE PATH "Path to the GCC toolchain's installation directory"
+ PSN00BSDK_TC ""
+ CACHE PATH "Path to the GCC toolchain's installation directory (if not in PATH)"
)
set(
- PSN00BSDK_TARGET mipsel-unknown-elf
+ PSN00BSDK_TARGET mipsel-none-elf
CACHE STRING "GCC toolchain target triplet"
)
@@ -38,6 +38,10 @@ set(
SKIP_EXAMPLES OFF
CACHE BOOL "Skip building SDK examples (not required for installation)"
)
+set(
+ BUILD_INFO ""
+ CACHE STRING "Information about this build to be included in build.json"
+)
# Forward some important variables to mkpsxiso and to the subprojects (they are
# not inherited automatically as they are not environment variables). This also
@@ -49,6 +53,8 @@ set(
COMMON_ARGS
-DPSN00BSDK_TC:PATH=${PSN00BSDK_TC}
-DPSN00BSDK_TARGET:STRING=${PSN00BSDK_TARGET}
+ -DPSN00BSDK_VERSION:STRING=${PROJECT_VERSION}
+ -DPSN00BSDK_BUILD_INFO:STRING=${BUILD_INFO}
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
)
set(
@@ -118,6 +124,11 @@ install(
DESTINATION ${CMAKE_INSTALL_DATADIR}/psn00bsdk
COMPONENT docs
)
+install(
+ DIRECTORY examples
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/psn00bsdk
+ COMPONENT examples
+)
## CPack configuration