CMake

CMake
CMake
CMake-logo-triangle-high-res.png
Developer(s) Andy Cedilnik, Bill Hoffman, Brad King, Ken Martin, Alexander Neundorf
Stable release 2.8.6 / October 4, 2011; 42 days ago (2011-10-04)
Written in C++[1]
Operating system Cross-platform
Type Software development tools
License New BSD License
Website www.cmake.org

CMake is a cross-platform, open-source system for managing the build process of software (see Build automation) using a compiler-independent method. It is designed to support directory hierarchies and applications that depend on multiple libraries, and for use in conjunction with native build environments such as Make, Apple's Xcode and Microsoft Visual Studio. It also has minimal dependencies, requiring only a C++-compiler on its own build system.[2]

Contents

History

CMake was developed beginning in 1999 in response to the need for a cross-platform build environment the Insight Segmentation and Registration Toolkit (ITK)[3]. 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 Unix configure tool’s functionality. 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
  • The CABLE; features added by Brad King
  • GE Corporate R&D for support of DART

Additional features were created when VTK transitioned to CMake for its build environment and for supporting ParaView.

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 file remains unaffected.

Another feature of CMake is the ability to generate a cache to be used with a graphical editor, which, when CMake is run, can locate executables, files and libraries. This information goes into the cache, which can then be tailored before generating the native build files.

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.

CMake can generate makefiles for many platforms and IDEs including Unix, Windows, Mac OS X, MSVC, Cygwin, MinGW and Xcode.

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.[2]

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.

Notable applications

See also

References

External links

Learning resources for CMake include:


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • CMake — Desarrollador Andy Cedilnik, Bill Hoffman, Brad King, Ken Martin, Alexander Neundorf www.cmake.org …   Wikipedia Español

  • CMake — Тип Инструментальное программное обеспечение …   Википедия

  • CMake — Entwickler Bill Hoffman, Ken Martin, Brad King, Dave Cole, Alexander Neundorf, Clinton Stimpson[1] Aktuelle Version …   Deutsch Wikipedia

  • Cmake — Développeurs Andy Cedilnik, Bill Hoffman, Brad King, Ken Martin, Alexander Neundorf …   Wikipédia en Français

  • CMake — Développeurs Andy Cedilnik, Bill Hoffman, Brad King, Ken Martin, Alexander Neundorf Dernière version …   Wikipédia en Français

  • Cmake — …   Википедия

  • Autoconf — Programmablaufplan von autoconf und automake, zwei Tools im GNU Build System Das GNU Build System, auch bekannt als Autotools, ist eine Sammlung von Tools für die Computerprogrammierung, die vom GNU Projekt entwickelt wurden. Diese Tools sind für …   Deutsch Wikipedia

  • Autoheader — Programmablaufplan von autoconf und automake, zwei Tools im GNU Build System Das GNU Build System, auch bekannt als Autotools, ist eine Sammlung von Tools für die Computerprogrammierung, die vom GNU Projekt entwickelt wurden. Diese Tools sind für …   Deutsch Wikipedia

  • Automake — Programmablaufplan von autoconf und automake, zwei Tools im GNU Build System Das GNU Build System, auch bekannt als Autotools, ist eine Sammlung von Tools für die Computerprogrammierung, die vom GNU Projekt entwickelt wurden. Diese Tools sind für …   Deutsch Wikipedia

  • Autotools — Programmablaufplan von autoconf und automake, zwei Tools im GNU Build System Das GNU Build System, auch bekannt als Autotools, ist eine Sammlung von Tools für die Computerprogrammierung, die vom GNU Projekt entwickelt wurden. Diese Tools sind für …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”