qt6.2.4 cmake 手动编译
作者:互联网
qt creator实际执行的构建命令:
修整一下:
cmake -Bbuild -GNinja "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" "-DCMAKE_PREFIX_PATH:PATH=C:/Qt/6.2.4/mingw_64
找个终端,执行之后就能得到cmake生成的文件
然后执行
ninja -C build
或者执行
cmake --build ./build --target all
都可以编译得到可执行文件
标签:qt6.2,cmake,Qt,--,编译,build,PATH,DCMAKE 来源: https://www.cnblogs.com/feipeng8848/p/16459689.html