![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CMake
文章平均质量分 55
半夜摘星星
一步步深入HEELO WORLD吧
展开
-
使用mingw64生成MinGW Makefiles时一直失败
安装时把mingw32-make.exe改成了make.exe,这时在mingw下找不到可以生成的MinGW Makefile的mingw32-make.exe。将mingw32-make.exe copy一份,重命名为make.exe,使得mingw/bin下有这两个文件即可。原创 2023-04-11 17:18:24 · 521 阅读 · 0 评论 -
CMake生成库和intall文件
文件目录构成:.├── CMakeLists.txt├── lib_config│ └── helloConfig.cmake.in├── test_hello.c└── test_hello.h1 directory, 4 filesCmakeLists.txt文件内容:cmake_minimum_required(VERSION 3.5)project(test_hello C)#设置install目录set(CMAKE_INSTALL_PREFIX /home/u原创 2022-02-21 13:21:07 · 1728 阅读 · 0 评论 -
CMake添加不同目录文件的方法
三种使用CMake构建工程添加子目录的方法文件目录结构.├── CMakeLists.txt├── inc│ ├── ansi_def.h│ ├── ansi.h│ ├── ansi_port.h│ ├── nr_micro_shell_config.h│ └── nr_micro_shell.h├── main.c├── nr_micro_shell_commands.c└── src ├── ansi.c ├── ansi_port.c原创 2022-02-16 16:09:25 · 10186 阅读 · 3 评论