8000 GitHub - tek256/cmake: a cmake template for c/c++
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tek256/cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Usage

Make sure you have cmake installed, you can download it from their website here.

To setup the project, run:

cmake -Bbuild -S.

You can specify a generator with the -G flag, for example, Ninja: -GNinja.

To compile / recompile the project, run:

cmake --build build

Generators

You can find the generators available to your machine by typing

cmake -G

Most generators work with the -GXXXX format, however not all are going to from my experience. The alternative is to do the following format:

cmake -G "MinGW Makefiles"

You can read more about the generators in cmake here in the documentation!

Ninja

I have a personal preference to using Ninja on all my systems since it seems to be significantly faster than most others. The downside is that you have to install Ninja. You can download Ninja from its GitHub Releases Page. Most package managers in Linux & Mac have Ninja, so check there. For Windows and manual installs, you'll have to make sure that it's included in your system path.

About

a cmake template for c/c++

Resources

Stars

Watchers

Forks

0