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.
- Host: GitHub
- URL: https://github.com/RaymondZuo301/cmake_example
- Owner: RaymondZuo301
- License: mit
- Created: 2020-02-29T14:05:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T08:03:37.000Z (about 6 years ago)
- Last Synced: 2024-08-01T03:29:29.750Z (over 1 year ago)
- Topics: cmake, cpp
- Language: CMake
- Homepage:
- Size: 28.3 KB
- Stars: 17
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Intro

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
```