我希望你能为我提供一个简单的CMake Hello World项目生成指南,以便在CMake中加载。
平台:联想32位Linux Kubuntu
1)我将使用git仓库:
./git/CMakeLists.txt
./git/code/CMakeLists.txt
./git/code/hello-world.c
当文件包含明显的内容时
2) 我会运行cmake
- pointing the source to the git repo indicated in 1
- configuring the repo
- generating the code-blocs-project (cbp) file in ./build
3) 所以我只需点击即可
- the cbp link in ./build
- compile the project in c::b and run a
- very basic console program spitting out, you guessed it: "Hello stack overflowers!"