Skip to content

simple CMake template that leverages the modern and recommended structure

Notifications You must be signed in to change notification settings

0x7a657573/Basic_Cmake_Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic CMake Template

CMake has become quite popular as a C++ build system generator. Many IDEs now support it natively. Moreover, CMake itself has been evolving to be more simpler to use with specific idioms around working with targets and properties; coupled with its ability to work across different OSes ensures that we can have as much portability as possible. There are many tutorials across the internet on how to build with CMake. However, there are many outdated suggestions out there, which will work but is generally not valid anymore.

I wanted to write a simple CMake build setup that leverages the modern and recommended way of doing the same.

Project Files Structure

├── CMakeLists.txt
├── fibonacci
│   ├── CMakeLists.txt
│   ├── fibonacci.c
│   └── fibonacci.h
├── math
│   ├── CMakeLists.txt
│   ├── fast_math.c
│   └── fast_math.h
└── src
    └── main.c

About

simple CMake template that leverages the modern and recommended structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published