CMake: Difference between revisions
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
cmake --build . | cmake --build . | ||
</syntaxhighlight> | </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== | ==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"