A simple repository template for a Core/App Project using CMake and C++
- CMake 64.4%
- C++ 35.6%
| App | ||
| Library | ||
| Tests | ||
| Vendor | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Readme.md | ||
CMake Template
This repo is a template for a CMake project setup in the typical Library/App format with a Testing Project to also demonstrate how CPM can be used to fetch dependencies.
The projects are as follows:
- Library: A static library containing code shared among other projects;
- App: The application, it depends on the library;
- Tests: Test application using GoogleTest, it depends on the library and GoogleTest
Building
The project can be built with the two following commands:
cmake -S . -B build -G Ninja
cmake --build build --parallel