Add basic CMake project
This commit is contained in:
1 parent
4583213522
commit
e0937131b1
3 files changed
+56
No files matched your search
@@ -1 +1,2 @@
|
||||
.vs/
|
||||
build/
|
||||
@@ -0,0 +1,5 @@
|
||||
# Mainspring CMakeLists.txt
|
||||
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
project(mainspring)
|
||||
@@ -0,0 +1,50 @@
|
||||
// Mainspring CMake presets
|
||||
|
||||
{
|
||||
"version": 3,
|
||||
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "base",
|
||||
"hidden": true,
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build/${presetName}",
|
||||
"architecture": {
|
||||
"value": "x64",
|
||||
"strategy": "external"
|
||||
},
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_COMPILER": "cl.exe",
|
||||
"CMAKE_CXX_COMPILER": "cl.exe"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Debug",
|
||||
"inherits": "base",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Release",
|
||||
"inherits": "base",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Release"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "Debug",
|
||||
"configurePreset": "Debug"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Release",
|
||||
"configurePreset": "Release"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user