# CMake [TOC] # Introduction ## What is CMake ## How to install Download from CMake web: https://cmake.org/download/ ### Windows Download .msi Package(Installer) and follow installer. ### Linux, MacOS #### From Package Manager(Ubuntu/Debian) ```shell sudo apt-get install cmake ``` #### From Installer(MacOS) Download .dmg Package(Installer) and follow installer. #### From Source Code Requirements: make, g++ or clang ```shell= ./bootstrap make make install ``` ## Simple CMakeLists.txt ```cmake= cmake_minimum_required(VERSION 3.10) # set the project name project(Tutorial) # add the executable add_executable(Tutorial tutorial.cxx) ``` ## Generate Makefile By CMake ```bash cmake <src_dir> ``` # Tutorial :::info :bulb: TODO ::: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#introduction