文章分类 - cmake
摘要:1. 修改src的CMakeLists.txt文件 2. cmake和make 可在./build/bin目录下找到hello
阅读全文
摘要:在上一节中,hello程序的hello.c, hello.h main.c均在同一文件夹 若要将hello.c hello.h main.c分别放在不同文件夹,则要写多个CMakeLists.txt 我们期望的文件结构是 ├── build├── CMakeLists.txt├── lib│ ├──
阅读全文
摘要:1. 直接修改 cmake实践:包含头文件的hello wrold 中的CMakeLists.txt 2. cmake 和 make
阅读全文
摘要:1. 建立hello.h 2. 修改hello.c 3. 新建main.c 4. 修改CMakeLists.txt 5. cmake和make 输出hello, roov.
阅读全文
摘要:1. 环境搭建 ubuntu下安装gcc, g++: sudo apt-get install g++, sudo apt-get install gcc 若未安装,会出现CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" wa
阅读全文
浙公网安备 33010602011771号