|
@@ -0,0 +1,42 @@
|
|
|
+{
|
|
|
+ "version": 2,
|
|
|
+ "configurePresets": [
|
|
|
+ {
|
|
|
+ "name": "linux-default",
|
|
|
+ "displayName": "Linux Debug",
|
|
|
+ "description": "面向适用于 Linux 的 Windows 子系统(WSL)或远程 Linux 系统。",
|
|
|
+ "generator": "Unix Makefiles",
|
|
|
+ "binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
|
+ "cacheVariables": {
|
|
|
+ "CMAKE_BUILD_TYPE": "Debug",
|
|
|
+ "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
|
|
|
+ "SIMULATE_ON": {
|
|
|
+ "value": "False",
|
|
|
+ "type": "BOOL"
|
|
|
+ },
|
|
|
+ "BUILD_TESTING": "OFF",
|
|
|
+ "BUILD_DEVADAPTER": "ON"
|
|
|
+ },
|
|
|
+ "vendor": {
|
|
|
+ "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Linux" ] },
|
|
|
+ "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "windows-default",
|
|
|
+ "displayName": "Windows x64 Debug",
|
|
|
+ "description": "面向具有 Visual Studio 开发环境的 Windows。",
|
|
|
+ "generator": "Ninja",
|
|
|
+ "binaryDir": "${sourceDir}/out/build/${presetName}",
|
|
|
+ "architecture": {
|
|
|
+ "value": "x64",
|
|
|
+ "strategy": "external"
|
|
|
+ },
|
|
|
+ "cacheVariables": {
|
|
|
+ "CMAKE_BUILD_TYPE": "Debug",
|
|
|
+ "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
|
|
|
+ },
|
|
|
+ "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|