1
0
Fork 0
A simple repository template for a Core/App Project using CMake and C++
  • CMake 64.4%
  • C++ 35.6%
Find a file Use this template
2025-10-01 20:56:14 +01:00
App Project Setup 2025-10-01 20:56:14 +01:00
Library Project Setup 2025-10-01 20:56:14 +01:00
Tests Project Setup 2025-10-01 20:56:14 +01:00
Vendor Project Setup 2025-10-01 20:56:14 +01:00
.gitignore Project Setup 2025-10-01 20:56:14 +01:00
CMakeLists.txt Project Setup 2025-10-01 20:56:14 +01:00
Readme.md Project Setup 2025-10-01 20:56:14 +01:00

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