Skip to content

Bare minimal CMake template for C projects without any external dependencies.

License

Notifications You must be signed in to change notification settings

rbento/c-cmake-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c-cmake-starter

Build

About


Bare minimal CMake template for C projects without any external dependencies.

Automatically includes the required headers while compiling and linking the executable.

Usage


  • Update project_name in CMakeLists.txt and run.sh

Build & Run


macOS

Includes scripts for cleaning and building the project.

# Clean
./clean.sh

# Build
./build.sh

# Run
./run.sh
Screenshot 2023-11-16 at 5 01 23 AM

Windows / Visual Studio

  • Open a local folder
  • Project > Generate cache for <project-name>
  • Right click a source file in the Solution Explorer and Set as Startup Item
  • Build with Ctrl+B
  • Debug with F5

About

Bare minimal CMake template for C projects without any external dependencies.

Topics

Resources

License

Stars

Watchers

Forks