VS2017 CMake配置

Posted vczf

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS2017 CMake配置相关的知识,希望对你有一定的参考价值。

"configurations": [
    {
      "name": "x86-Release",
      "generator": "Ninja",
      "configurationType": "Release",
      "inheritEnvironments": [
        "msvc_x86"
      ],
      "buildRoot": "${projectDir}\vs-cmake-build\build\${name}",
      "installRoot": "${projectDir}\vs-cmake-build\install\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "-v",
      "ctestCommandArgs": ""
    },
    {
      "name": "x86-Debug",
      "generator": "Ninja",
      "configurationType": "Debug",
      "inheritEnvironments": [
        "msvc_x86"
      ],
      "buildRoot": "${projectDir}\vs-cmake-build\build\${name}",
      "installRoot": "${projectDir}\vs-cmake-build\install\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "-v",
      "ctestCommandArgs": ""
    },
    {
      "name": "x64-Debug",
      "generator": "Ninja",
      "configurationType": "Debug",
      "inheritEnvironments": [
        "msvc_x64_x64"
      ],
      "buildRoot": "${projectDir}\vs-cmake-build\build\${name}",
      "installRoot": "${projectDir}\vs-cmake-build\install\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "-v",
      "ctestCommandArgs": ""
    },
    {
      "name": "x64-Release",
      "generator": "Ninja",
      "configurationType": "Release",
      "inheritEnvironments": [
        "msvc_x64_x64"
      ],
      "buildRoot": "${projectDir}\vs-cmake-build\build\${name}",
      "installRoot": "${projectDir}\vs-cmake-build\install\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "-v",
      "ctestCommandArgs": ""
    }
  ]

 

以上是关于VS2017 CMake配置的主要内容,如果未能解决你的问题,请参考以下文章

vs2017+opencv+qt+cuda,使用cmake编译opencv的库

cmake编译后能给vs使用吗

VS 2017 中的 CMake 在构建时不显示构建日志

VS Code配置markdown代码片段

VS Code配置markdown代码片段

OpenCV3.3.0 + CLion + CMake 配置(Mac巨细无敌版)