Skip to content

Commit e154cb8

Browse files
committed
Adding a simple CMake presets file
Adding a simple CMake presets file with instructions for configuring and building SCORPIO on a generic linux machine
1 parent aa910d1 commit e154cb8

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

CMakePresets.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": 3,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 7,
6+
"patch": 0
7+
},
8+
"configurePresets": [
9+
{
10+
"name": "linux-generic-debug-config",
11+
"displayName": "Linux Generic Machine (Debug)",
12+
"description": "Targeting a generic Linux machine/laptop (Debug mode)",
13+
"generator": "Unix Makefiles",
14+
"binaryDir": "${sourceDir}/out/build/${presetName}",
15+
"cacheVariables": {
16+
"CMAKE_BUILD_TYPE": "Debug",
17+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
18+
"CMAKE_CXX_COMPILER": "mpicxx",
19+
"CMAKE_C_COMPILER": "mpicc",
20+
"CMAKE_Fortran_COMPILER": "mpif90"
21+
}
22+
}
23+
],
24+
"buildPresets": [
25+
{
26+
"name": "linux-generic-debug-build",
27+
"configurePreset": "linux-generic-debug-config"
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)