Skip to content

rvarago/modern-cmake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern CMake Template

Template for projects based on modern CMake practices.

Components:

  • app.
  • libs/lib1.
  • libs/lib1/tests.

See How to Use Modern CMake for an App + Lib Project for more information.

Usage

Create the build directory and configure the build system:

cmake -B build # Or `cmake -D BUILD_TESTING=OFF -B build` to skip tests. 

Build the project:

cmake --build build

Inspect the build directory to find the application and the tests.

Optionally, run the tests with ctest by typing:

cmake -E chdir build ctest

About

CMake template for an example project composed of executable and library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published