CMakePresets.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "version": 2,
  3. "configurePresets": [
  4. {
  5. "name": "linux-default",
  6. "displayName": "Linux Debug",
  7. "description": "面向适用于 Linux 的 Windows 子系统(WSL)或远程 Linux 系统。",
  8. "generator": "Unix Makefiles",
  9. "binaryDir": "${sourceDir}/out/build/${presetName}",
  10. "cacheVariables": {
  11. "CMAKE_BUILD_TYPE": "Debug",
  12. "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
  13. "SIMULATE_ON": {
  14. "value": "False",
  15. "type": "BOOL"
  16. },
  17. "BUILD_TESTING": "OFF",
  18. "BUILD_DEVADAPTER": "ON"
  19. },
  20. "vendor": {
  21. "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Linux" ] },
  22. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" }
  23. }
  24. },
  25. {
  26. "name": "linux-release",
  27. "displayName": "Linux Release",
  28. "description": "面向适用于 Linux 的 Windows 子系统(WSL)或远程 Linux 系统。",
  29. "generator": "Unix Makefiles",
  30. "binaryDir": "${sourceDir}/out/build/${presetName}",
  31. "cacheVariables": {
  32. "CMAKE_BUILD_TYPE": "Release",
  33. "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
  34. "SIMULATE_ON": {
  35. "value": "False",
  36. "type": "BOOL"
  37. },
  38. "BUILD_TESTING": "OFF",
  39. "BUILD_DEVADAPTER": "ON"
  40. },
  41. "vendor": {
  42. "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Linux" ] },
  43. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" }
  44. }
  45. },
  46. {
  47. "name": "windows-default",
  48. "displayName": "Windows x64 Debug",
  49. "description": "面向具有 Visual Studio 开发环境的 Windows。",
  50. "generator": "Ninja",
  51. "binaryDir": "${sourceDir}/out/build/${presetName}",
  52. "architecture": {
  53. "value": "x64",
  54. "strategy": "external"
  55. },
  56. "cacheVariables": {
  57. "CMAKE_BUILD_TYPE": "Debug",
  58. "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
  59. },
  60. "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } }
  61. }
  62. ]
  63. }