QT使用cmake生成vs2019工程方法
QT使用cmake生成vs2019工程方法
参考链接:https://cmake.org/cmake/help/git-stage/generator/Visual%20Studio%2016%202019.html
生成命令:
1、生成win32工程
cmake -G "Visual Studio 16 2019" -A Win32
2、生成win64工程
cmake -G "Visual Studio 16 2019" -A x64
3、生成arm工程
cmake -G "Visual Studio 16 2019" -A ARM
4、生成arm64工程
cmake -G "Visual Studio 16 2019" -A ARM64
示例:生成vs2019 win32的工程
$ cmake -G "Visual Studio 16 2019" -A Win32
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
-- The C compiler identification is MSVC 19.22.27905.0
-- The CXX compiler identification is MSVC 19.22.27905