harsha5500 / cmake-demo

Simple Cmake based build for a C project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cmake Demo

This is a simple cmake based project to demostate compiling using cmake for a C project. The project provides a skeletal folder structure. The objective is to project a skeletal structure for a multiplatform C based proejct that can be combiled on Windows, Linux and macOS.

Folders

  • src source files, ".c" files.
  • includes include files, ".h" header files.
  • resources any other required files, images, etc.,
  • cmake any additional cmake modules like finding other libraries. In place for the future.

Requires

  • CMake

Installation

To install creata a build directory, generate the required makefile using Cmake and then run make to compile the project.

mkdir build
cd build
cmake ..
make


export SDL2DIR=/usr/local/include/SDL2
export SDL2IMAGEDIR

About

Simple Cmake based build for a C project


Languages

Language:CMake 92.5%Language:C 7.5%