安装方法: 在Mac中打开Termal: 输入命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ins
add_executable(hello_world src/hello_world.cpp src/main.cpp)#然后选择需要编译的源文件,凡是要编译的源文件都需要列举出来。 3 编译工程 $ cd build #build文件夹 存放编译生成的中间文件。 $ cmake .. #生成makefile文件 $ make #编译项目 编译通过以后就会在对应的bin文件夹中生成名为hello_world的可执...