cmake

cmake -G "编译器" -S "源码路径" -B "构建目录"

例如在windows平台,采用64位编译器的命令如下:

64位: cmake -G "Visual Studio 15 2017 Win64" -S "源码路径" -B "构建目录"