CMake MSBuild 配置

cmake 命令生成对应环境的 一些参数:

配置 编译工具, 举个栗子比如 vs 2017,64位 如下:

cmake -G  "Visual Studio 15 2017" -A x64

32位如下:

cmake -G "Visual Studio 15 2017" -A Win32

配置 Release & Debug 需要在编译的时候进行设置:

cmake --build . --config "Release" --target install

还有更多参数,进行更为详细设置,可以参考以下链接:

https://cmake.org/cmake/help/git-stage/manual/cmake.1.html

https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2015%202017.html

你可能感兴趣的:(node)