YouUWd / cmake_projects

标准C语言的一些样例工程,基于cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmake_projects

c语言的一些样例工程,基于cmake

单目录工程

sample1

# tree sample1
sample1
├── CMakeLists.txt
├── include
│   └── hello.h
└── src
    ├── CMakeLists.txt
    ├── hello.c
    └── main.c

多目录工程

sample2

# tree sample2
sample2
├── CMakeLists.txt
└── src
    ├── CMakeLists.txt
    ├── hello
    │   ├── CMakeLists.txt
    │   ├── hello.c
    │   └── hello.h
    ├── main.c
    └── world
        ├── CMakeLists.txt
        ├── world.c
        └── world.h

动态库和静态库的构建和使用

sample3

# tree sample3
sample3
├── CMakeLists.txt
├── include
├── src
│   ├── CMakeLists.txt
│   ├── hello
│   │   ├── hello.c
│   │   └── hello.h
│   └── world
│       ├── world.c
│       └── world.h
└── test
    ├── CMakeLists.txt
    └── test.c

参考文档

参考

About

标准C语言的一些样例工程,基于cmake


Languages

Language:C 67.0%Language:Shell 21.1%Language:Makefile 5.3%Language:CSS 2.0%Language:M4 1.9%Language:C++ 1.3%Language:HTML 0.6%Language:CMake 0.4%Language:JavaScript 0.2%Language:Dockerfile 0.1%Language:Perl 0.0%Language:Lex 0.0%