forked from MODFLOW-USGS/modelviewer-mf6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
153 lines (153 loc) · 4.71 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 18,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"hidden": true,
"binaryDir": "${sourceDir}/_${presetName}",
"cacheVariables": {
},
"generator": "Ninja Multi-Config",
"environment": {
"VTK_DIR": "$env{RUNNER_WORKSPACE}/qt5-vtk-$env{VTK_VER}/lib/cmake",
"Qt5_DIR": "$env{RUNNER_WORKSPACE}/Qt/$env{AQT_VER}/${presetName}/lib/cmake/Qt5"
}
},
{
"name": "win64_msvc2019_64",
"inherits": "default",
"displayName": "mvmf6 on Windows",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"vendor": {
"usgs.gov/modflow": {
"Name": "U.S. Geological Survey",
"Configure": "cmake --preset win64_msvc2019_64",
"Build-debug": "cmake --build --preset win64_msvc2019_64 --config Debug",
"Build-release": "cmake --build --preset win64_msvc2019_64 --config Release",
"Install-debug": "cmake --install ./_ninja --config Debug",
"Install-release": "cmake --install ./_ninja --config Release"
}
}
},
{
"name": "gcc_64",
"inherits": "default",
"displayName": "mvmf6 on Linux",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "$env{HOME}/.local"
},
"vendor": {
"usgs.gov/modflow": {
"Name": "U.S. Geological Survey",
"Configure": "cmake --preset gcc_64",
"Build-debug": "cmake --build --preset gcc_64 --config Debug",
"Build-release": "cmake --build --preset gcc_64 --config Release",
"Install-debug": "cmake --install _gcc_64 --config Debug",
"Install-release": "cmake --install _gcc_64 --config Release"
}
}
},
{
"name": "gcc_64_sudo",
"inherits": "gcc_64",
"displayName": "mvmf6 on Linux (as root)",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"environment": {
"Qt5_DIR": "$env{RUNNER_WORKSPACE}/Qt/$env{AQT_VER}/gcc_64/lib/cmake/Qt5"
},
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": null
},
"vendor": {
"usgs.gov/modflow": {
"Name": "U.S. Geological Survey",
"Configure": "cmake --preset gcc_64_sudo",
"Build-debug": "cmake --build --preset gcc_64_sudo --config Debug",
"Build-release": "cmake --build --preset gcc_64_sudo --config Release",
"Install-debug": "sudo cmake --install _gcc_64_sudo --config Debug",
"Install-release": "sudo cmake --install _gcc_64_sudo --config Release"
}
}
},
{
"name": "clang_64",
"inherits": "default",
"displayName": "mvmf6 on Darwin",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"vendor": {
"usgs.gov/modflow": {
"Name": "U.S. Geological Survey",
"Notes": "This file should be placed in the root directory of VTK-9.1.0",
"Configure": "cmake --preset ${presetName}",
"Build-debug": "cmake --build --preset ${presetName} --config Debug",
"Build-release": "cmake --build --preset ${presetName} --config Release",
"Install-debug": "cmake --install ${binaryDir} --config Debug",
"Install-release": "cmake --install ${binaryDir} --config Release"
}
}
}
],
"buildPresets": [
{
"name": "win64_msvc2019_64",
"configurePreset": "win64_msvc2019_64",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "gcc_64",
"configurePreset": "gcc_64",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "gcc_64_sudo",
"configurePreset": "gcc_64_sudo",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "clang_64",
"configurePreset": "clang_64",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
}
],
"vendor": {
"Note": ""
}
}