---
# System prepended metadata

title: 從cmake source打包debian package
tags: [debian, cmake]

---

# 從cmake source打包debian package

###### tags: `cmake` `debian`

1. 先去[官網](https://cmake.org/download/)抓你需要版本的source code
2. build起來

```bash=
$ ./configure
$ make
$ make install # 安裝
```

3. 打包成debian

```bash=
$ cpack -G DEB # 打包
```

## Ref

- https://stackoverflow.com/questions/32012811/how-to-build-a-deb-file-for-cmake-from-source