An open API service indexing awesome lists of open source software.

https://github.com/RaymondZuo301/cmake_example

This is an example of CMake & C++ project.
https://github.com/RaymondZuo301/cmake_example

cmake cpp

Last synced: about 1 year ago
JSON representation

This is an example of CMake & C++ project.

Awesome Lists containing this project

README

          

# Intro

![C/C++ CI](https://github.com/RaymondZuo301/cmake_example/workflows/C/C++%20CI/badge.svg)

This is an example of CMake & C++ project.

# Dependence

- gtest
- cmake-3.10+
- doxygen(sudo apt-get install doxygen)
- graphviz(sudo apt-get install graphviz)

# Build

```bash
mkdir build
cd build
cmake ..
make
```

# Install

```bash
make install
```

# CPack

```bash
cpack ./CPackConfig.cmake
dpkg -i XXXXX.deb
```

# Test

```bash
cmake .. -DBUILD_TEST=1
make test
```

# Doc

```bash
cmake .. -DBUILD_DOC=1
make doc
```