Skip to content

Xaristrike/SimpleCMakeProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple CMake Project

This is a simple project I created to learn how CMake works. It demonstrates a basic CMake setup for building and running a C program.

Features

  • Basic CMake setup for compiling a C program.
  • Custom build target to run the executable after building.

Prerequisites

  • CMake (version 3.10 or higher)
  • C compiler (I used gcc)

How to Build and Run

  1. Clone the repository:
git clone https://github.com/Xaristrike/SimpleCMakeProject.git
cd SimpleCMakeProject
  1. Generate the build system:
cmake -S . -B build
  1. Build the project:
cmake --build build
  1. Run the executable:
cmake --build build --target run

Closing thoughts

Not much, just wanted to say that cmake is pain.

About

A simple project to help me learn CMake.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published