CMake: Difference between revisions

From David's Wiki
(Created page with "CMake is a tool for setting up projects for multiple development environments. It is typically used for writing cross-platform C and C++ projects. =Resources= * [https://cmak...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
It is typically used for writing cross-platform C and C++ projects.
It is typically used for writing cross-platform C and C++ projects.


=Resources=
==Getting Started==
===Creating a CMake Repo===
 
===Building a CMake Repo===
<syntaxhighlight lang="bash">
mkdir build
cd build
cmake ..
cmake --build .
</syntaxhighlight>
 
===CLI===
Flags:
* <code>-G</code> Set the generator. Run without anything to see a list of generators.
** Common generators: "MSYS Makefiles", "Visual Studio 16 2019"
 
==Resources==
* [https://cmake.org/cmake-tutorial/ Official CMake tutorial]
* [https://cmake.org/cmake-tutorial/ Official CMake tutorial]

Latest revision as of 21:06, 31 January 2020

CMake is a tool for setting up projects for multiple development environments. It is typically used for writing cross-platform C and C++ projects.

Getting Started

Creating a CMake Repo

Building a CMake Repo

mkdir build
cd build
cmake ..
cmake --build .

CLI

Flags:

  • -G Set the generator. Run without anything to see a list of generators.
    • Common generators: "MSYS Makefiles", "Visual Studio 16 2019"

Resources