summaryrefslogtreecommitdiff
path: root/README.md
blob: 64a013e303ba8d325e0c4bf8960d2409b82e9c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# KconfigCmake

The goal of this project is to integrate Kconfiglib into CMake in a clean way.

## Example

### Required Directories/Files

```
.
├── cmake
│   ├── Kconfig.cmake
├── CMakeLists.txt
├── configs
│   ├── example_defconfig
│   └── example2_defconfig
├── Kconfig
└── tools
    ├── Kconfiglib/
    └── make-cmake-config
```

### Commands

```
mkdir build
cd build
cmake -DDEFCONFIG=example_defconfig [-G Ninja] ..
(make | ninja) menuconfig
[(make | ninja) savedefconfig]
(make | ninja)
```