https://github.com/user4223/modern-cpp-cmake-conan2-gtest-project
Project template for a c++ project using cmake for building, conan2 for dependency management and gtest for testing
https://github.com/user4223/modern-cpp-cmake-conan2-gtest-project
ci cmake conan cpp gtest
Last synced: about 1 month ago
JSON representation
Project template for a c++ project using cmake for building, conan2 for dependency management and gtest for testing
- Host: GitHub
- URL: https://github.com/user4223/modern-cpp-cmake-conan2-gtest-project
- Owner: user4223
- Created: 2025-05-10T21:24:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-22T11:13:27.000Z (12 months ago)
- Last Synced: 2025-06-22T11:27:37.963Z (12 months ago)
- Topics: ci, cmake, conan, cpp, gtest
- Language: CMake
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/user4223/modern-cpp-cmake-conan2-gtest-project/actions/workflows/x86_64_ubuntu24.yml)
# What's this for?
Minimal project template using cpp, cmake, conan and gtest.
Replace all occurrences of 'Pacman' and 'pacman' in file names,
scripts and source files by your desired application name and
use it as a base for your cpp-project having dependency management,
build system and ci pipeline configured properly (at time of writing).
ftxui is used as sample dependency here, take a look on all occurrences
of 'ftxui' in cmake files, sources and conanfile and replace by dependencies
you need for your project.
# Instructions on Ubuntu
## Initial Setup
It assumes you have a modern python3 and venv module installed already. Otherwise you might need `apt-get install --no-install-recommends -y python3-venv` as well.
```
apt-get install --no-install-recommends -y build-essential make cmake
python3 -m venv venv
. venv/bin/activate
pip install conan
./setup.sh Debug
```
## Build for Development
```
./build.sh Debug -- -j
```
# Instructions on MacOS
## Initial Setup
```
xcode-select --install
brew install cmake make # Maybe some other dev-tools as well...
python3 -m venv venv
. venv/bin/activate
pip install conan
./setup.sh Debug
```
## Build for Development
```
./build.sh Debug -- -j
```