CMake
From KitwarePublic
Jump to navigationJump to search
Welcome to CMake, the cross-platform, open-source make system. CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation.
Development Topics
CMake
- Articles about CMake
- Platform Dependent Issues
- Various Editors / IDEs support
- Generator Specific Information
- Useful CMake Variables
- Macros contributed by Users
- CMake FAQ
- For CMake Hackers
CTest
CPack
Tutorials
CMake
- Cross-Platform Software Development Using CMake
Tutorial that should get anybody up to speed with CMake
- How to write platform checks with CMake
Describes how to implement platform or configure checks with CMake.
- How to find installed software with CMake
Describes how to search for and then use software packages with CMake.
- Qt with CMake Explains how to use CMake to build software with Qt4 and how to use it for Qt3 and KDE3 applications
- Chicken Scheme - Chicken is a performance oriented Scheme-to-C compiler. It is actively supported on all major C compilers and operating systems. Chicken's CMake build system is extensively commented and is intended to serve as a tutorial for new CMake users. Chicken is a non-trivial, modestly sized project, about 75,000 lines of code. As such, the build system is easier to understand than larger projects, and it has many examples of non-trivial CMake features. For instance, it demonstrates how to use ADD_CUSTOM_COMMAND to drive languages other than C/C++. It also demonstrates the nuances of multi-stage "bootstrapping" problems, i.e. how to generate source files and executables that are needed by the build itself, and how to reuse the same build rules in multiple directories.
- Alternative Automake2CMake converter written in PHP Converts Kdeveloper-projects that use Automake. This script can do approx. 87% of the converting :), but that is a start.
CTest
- Testing With CTest
Introduces to testing with CTest, submitting dashboards, and using CMake to add tests to the test system.
- CTest Scripting
Describes the scripting with CTest which can significantly simplify and automate testing and submitting dashboards.
- Generating Input Files For CTest
Describe more in details the concepts behind testing with CTest and also explans how to use CTest without using CMake.
CPack
- Packaging with CPack
Introduction to CPack, installing and packaging of software.
Administrative topics
- Where can I find more information about CMake?
- Where can I download CMake?
- What are some projects using CMake?