CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK.
CMake is part of Kitware’s collection of commercially supported open-source platforms for software development.
Have a question about a CMake project? We can help
CMake CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. Set up Visual Studio for Cross Platform C Development. First, install Visual Studio and choose the Desktop development with C and Linux development with C workloads.This minimal install is only 3 GB. Depending on your download speed, installation shouldn't take more than 10 minutes. CMake includes commands for finding libraries and header files, support for optional components of your software, testing the compiler and platform for specific features, and much more. CMake provides many powerful pre-defined commands, but if you need to, you can even add your own commands using CMake's macro capabilities.
Get the latest edition of the Mastering CMake book
“…CMake, CTest, and CDash have proven to be invaluable tools for us to build multiplatform code, track changes, run tests, and improve code quality by performing code coverage and memory leak analysis.”
“I am thankful for CMake’s shadow builds feature. For a project like SOFA, which has many optional features and possible option combinations, being able to quickly test a modification on several typical setups on my machine before pushing a significant change to the repository is a very valuable security. This is especially true for a complex project like ours.”
The HDF Group
“CMake, CTest, and CDash were the tools that we desperately needed. With the help of our user community, we added the CMake build system for all HDF products. We rely on CMake for HDF software being successfully built and tested on platforms that range from supercomputers to Windows desktops and tablets.”
“…in early 2010 a decision was made to look for a third party solution instead of continuing to expend time and effort maintaining RBuild. CMake was an early favorite and while the transition was not without its bumps, it has allowed the project to not only increase the number of compilers that could be used to build ReactOS, it also set the stage for significantly decreasing build times, making development faster and easier.”
“Our working relationship aside, CMake has greatly improved the process of building KDE. Projects using CMake take less time to get started, since there is less time spent fighting with the build system. One KDE developer says, “CMake doesn’t make you want to shoot yourself with a nailgun when building your project anymore.”
“A great technology choice that our community helped us make was moving to CMake, a cross-platform build tool, which makes it much simpler to maintain makefiles for many different platforms.”
- Allegro library
- Bullet Physics Engine
- Chipmunk physics engine
- Doomsday Engine
- Dust Racing 2D
- Falcon (programming language)
- FlightGear Flight Simulator
- GNU Radio
- Hiawatha (web server)
- iCub robot and YARP
- KDE SC 4
- LLVM and Clang
- MySQL and MariaDB
- Point Cloud Library
- Raw Therapee
- Second Life
- Spring RTS
- VTK and ParaView
CMake 3.20.2 available for download
CMake 3.20.2 is now available for download …
CMake 3.20.1 available for download
CMake 3.20.1 is now available for download …
CMake 3.19.8 available for download
CMake 3.19.8 is now available for download …
CMake is a tool to manage building of source code. Originally, CMake wasdesigned as a generator for various dialects of
Makefile, todayCMake generates modern buildsystems such as
Ninja as well as projectfiles for IDEs such as Visual Studio and Xcode.
CMake is widely used for the C and C++ languages, but it may be used tobuild source code of other languages too.
People encountering CMake for the first time may have different initialgoals. To learn how to build a source code package downloaded from theinternet, start with the
UserInteractionGuide.This will detail the steps needed to run the
cmake-gui(1) executable and how to choose a generator, andhow to complete the build.
UsingDependenciesGuide is aimed at developerswishing to get started using a third-party library.
Master Cmake Pdf
For developers starting a project using CMake, the
CMakeTutorialis a suitable starting point. The
cmake-buildsystem(7)manual is aimed at developers expanding their knowledge of maintaininga buildsystem and becoming familiar with the build targets thatcan be represented in CMake. The
cmake-packages(7) manualexplains how to create packages which can easily be consumed bythird-party CMake-based buildsystems.