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.
- Basic CMake setup for compiling a C program.
- Custom build target to run the executable after building.
- CMake (version 3.10 or higher)
- C compiler (I used gcc)
- Clone the repository:
git clone https://github.com/Xaristrike/SimpleCMakeProject.git
cd SimpleCMakeProject
- Generate the build system:
cmake -S . -B build
- Build the project:
cmake --build build
- Run the executable:
cmake --build build --target run
Not much, just wanted to say that cmake is pain.