CMake: Difference between revisions
No edit summary |
Rescuing 1 sources and tagging 0 as dead. #IABot (v1.2.7.1) |
||
Line 69: | Line 69: | ||
* [[Hypertable]] |
* [[Hypertable]] |
||
* [[Hugin (software)|Hugin]] |
* [[Hugin (software)|Hugin]] |
||
* [[iCub]] robot and [[YARP]]<ref name="icub">{{cite web |
* [[iCub]] robot and [[YARP]]<ref name="icub">{{cite web|url=http://eris.liralab.it/wiki/Manual#Six._Software.2C_Compiling_YARP_and_iCub |title=Compiling YARP and iCub |work=iCub user manual |deadurl=yes |archiveurl=https://web.archive.org/web/20100314045806/http://eris.liralab.it:80/wiki/Manual |archivedate=2010-03-14 |df= }}</ref> |
||
* [[IGSTK]] |
* [[IGSTK]] |
||
* [[Insight Segmentation and Registration Toolkit]] (ITK)<ref name="boostcon" /> |
* [[Insight Segmentation and Registration Toolkit]] (ITK)<ref name="boostcon" /> |
Revision as of 07:44, 12 November 2016
![]() | |
Developer(s) | Andy Cedilnik, Bill Hoffman, Brad King, Ken Martin, Alexander Neundorf |
---|---|
Initial release | 2000 |
Stable release | |
Repository | |
Written in | C, C++[3] |
Operating system | Cross-platform |
Type | Software development tools |
License | New BSD License |
Website | cmake![]() |
CMake is cross-platform free and open-source software for managing the build process of software using a compiler-independent method. It supports directory hierarchies and applications that depend on multiple libraries. It is used in conjunction with native build environments such as make, Apple's Xcode, and Microsoft Visual Studio. It has minimal dependencies, requiring only a C++ compiler on its own build system.
Features
CMake can handle in-place and out-of-place builds, enabling several builds from the same source tree, and cross-compilation. The ability to build a directory tree outside the source tree is a key feature, ensuring that if a build directory is removed, the source files remain unaffected.
CMake can locate executables, files, and libraries. These locations are stored in a cache, which can then be tailored before generating the target build files. The cache can be edited with a graphical editor which is included in the project.
Complicated directory hierarchies and applications that rely on several libraries are well supported by CMake. For instance, CMake is able to accommodate a project that has multiple toolkits, or libraries that each have multiple directories. In addition, CMake can work with projects that require executables to be created before generating code to be compiled for the final application. Its open-source, extensible design allows CMake to be adapted as necessary for specific projects.[4]
CMake can generate makefiles for many platforms and IDEs including Unix, Windows, Mac OS X, OS/2, MSVC, Cygwin, MinGW and Xcode.
Microsoft Visual Studio
CMake scripts can produce Microsoft Visual Studio project and solution files. However, CMake's syntax is more oriented towards Unix and Linux makefiles, while Visual Studio development relies primarily on project->properties GUI.[clarification needed][5]
Build process
The build process with CMake takes place in two stages. First, standard build files are created from configuration files. Then the platform's native build tools are used for the actual building.[4]
Each build project contains a CMakeLists.txt file in every directory that controls the build process. The CMakeLists.txt file has one or more commands in the form COMMAND (args...), with COMMAND representing the name of each command and args the list of arguments, each separated by white space. While there are many built-in rules for compiling the software libraries (static and dynamic) and executables, there are also provisions for custom build rules. Some build dependencies can be determined automatically. Advanced users can also create and incorporate additional makefile generators to support their specific compiler and OS needs.
History
CMake development began in 1999 in response to the need for a cross-platform build environment for the Insight Segmentation and Registration Toolkit (ITK).[6] The project is funded by the United States National Library of Medicine as part of the Visible Human Project. It was partially inspired by pcmaker, which was made by Ken Martin and other developers to support the Visualization Toolkit (VTK). At Kitware, Bill Hoffman blended components of pcmaker with his own ideas, striving to mimic the functionality of Unix configure scripts. CMake was first implemented in 2000 and further developed in 2001. Continued development and improvements were fueled by the incorporation of CMake into developers’ own systems, including the VXL Project[clarification needed], The CABLE[7] features added by Brad King,[clarification needed] and GE Corporate R&D for support of DART.[clarification needed]
Additional features were created when VTK transitioned to CMake for its build environment and for supporting ParaView.
Applications that use CMake
- Allegro library
- Armadillo – linear algebra library
- Avidemux
- awesome – window manager
- BCI2000
- Blender
- BRL-CAD
- Bullet Physics Engine
- CGAL – Computational Geometry Algorithms Library
- Chipmunk physics engine
- CLion[8][9]
- Compiz
- Conky[10]
- cURL
- Deal.II
- Doomsday Engine
- Dust Racing 2D
- Drishti
- Ettercap
- Falcon (programming language)
- FlightGear Flight Simulator
- GDCM
- Geant4
- Gmsh
- GNU Radio
- GROMACS
- Hiawatha (web server)
- Hypertable
- Hugin
- iCub robot and YARP[11]
- IGSTK
- Insight Segmentation and Registration Toolkit (ITK)[12]
- KDE SC 4[4]
- KiCad
- libpng
- LAPACK
- LLVM and Clang
- LMMS
- Mir
- MiKTeX
- MLPACK – machine learning library
- MuseScore
- MySQL and MariaDB
- OGRE
- OpenCV
- OpenCog
- OpenCPN
- OpenSceneGraph
- OpenSync
- Orthanc
- Point Cloud Library
- Poppler
- PvPGN
- QGIS
- Qt[13]
- Raw Therapee
- ReactOS
- ROOT
- ROS
- Ryzom
- Scribus[4][12]
- SDL
- Second Life[12]
- SFML
- Spring RTS
- SuperTux
- Synergy
- Slicer
- Stellarium
- Trilinos
- Vortexje
- The Visualization Toolkit and ParaView[12]
- VXL
- zlib
- PCSX2
- Zdoom
- ZeroMQ
See also
- List of build automation software § Build script generation tools
- configure script
- GYP (Generate Your Projects)
- imake
- Premake
- qmake
References
- ^ "Download CMake". CMake. Retrieved 2016-11-04.
- ^ Maynard, Robert (22 July 2016). "CMake 3.6.3 available for download". Kitware. Retrieved 2016-08-26.
- ^ "The CMake Open Source Project on OpenHub". OpenHub. Retrieved 2016-04-09.
- ^ a b c d Neundorf, Alexander (2006-06-21). "Why the KDE project switched to CMake—and how". LWN.net.
- ^ "CMake and Visual Studio".
- ^ "FLOSS Weekly 111: CMake". podcast. TWiT Network. Retrieved 27 February 2011.
- ^ The CABLE
- ^ Bridgwater, Adrian (13 September 2014). "JetBrains CLion: A New Cross Platform C/C++ IDE". infoworld.
- ^ Krill, Paul (14 September 2014). "Version 1.0 of JetBrains' CLion IDE will include C/C++ support". infoworld.
- ^ Conky README.cmake file
- ^ "Compiling YARP and iCub". iCub user manual. Archived from the original on 2010-03-14.
{{cite web}}
: Unknown parameter|deadurl=
ignored (|url-status=
suggested) (help) - ^ a b c d Hoffman, Bill. "CMake / CTest / CPack: Open source tools to build, test, and install software" (PDF). BoostCon 2009.
- ^ "Qt Doc / CMake Manual". Digia.