From c37801386d304a9d62af54de8bd146fe842d59c5 Mon Sep 17 00:00:00 2001 From: Razish Date: Tue, 26 Sep 2023 18:11:21 +1000 Subject: [PATCH] can we use CMakePresets.json for some reasonable defaults? --- .gitignore | 3 ++- CMakePresets.json | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 CMakePresets.json diff --git a/.gitignore b/.gitignore index a8a1494a1f..327a150665 100644 --- a/.gitignore +++ b/.gitignore @@ -192,4 +192,5 @@ pip-log.txt ## CMake Builds ############# [Bb]uild*/ -cmake-build-* \ No newline at end of file +cmake-build-* +CMakeUserPresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000000..0438827091 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,59 @@ +{ + "version": 6, + "cmakeMinimumRequired": { + "major": 3, + "minor": 20 + }, + "configurePresets": [ + { + "name": "NOOP", + "hidden": true, + "cacheVariables": { + "BuildMPEngine": "OFF", + "BuildMPRdVanilla": "OFF", + "BuildMPDed": "OFF", + "BuildMPGame": "OFF", + "BuildMPCGame": "OFF", + "BuildMPUI": "OFF", + "BuildSPEngine": "OFF", + "BuildSPGame": "OFF", + "BuildSPRdVanilla": "OFF", + "BuildJK2SPEngine": "OFF", + "BuildJK2SPGame": "OFF", + "BuildJK2SPRdVanilla": "OFF" + } + }, + { + "name": "JASP", + "cacheVariables": { + "BuildSPEngine": "ON", + "BuildSPGame": "ON", + "BuildSPRdVanilla": "ON" + } + }, + { + "name": "JAMP", + "cacheVariables": { + "BuildMPEngine": "ON", + "BuildMPRdVanilla": "ON", + "BuildMPDed": "ON", + "BuildMPGame": "ON", + "BuildMPCGame": "ON", + "BuildMPUI": "ON" + } + }, + { + "name": "JKA", + "inherits": [ "JASP", "JAMP", "NOOP" ] + }, + { + "name": "JK2", + "inherits": [ "NOOP" ], + "cacheVariables": { + "BuildJK2SPEngine": "ON", + "BuildJK2SPGame": "ON", + "BuildJK2SPRdVanilla": "ON" + } + } + ] +}