In other words, you are giving portability to your building process. In the case of CMake, the main advantage is:īy just one configuration file you’ll be able to generate different configuration files to build your project for different platforms (Make, Visual Studio, etc). The practice to add another level of indirection to solve a problem is very common in Computer Science. In the other hand, CMake will also parse a configuration file ( CMakeLists.txt), but instead of directly build the artifact, it’ll generate another configuration file that will, in fact, build the artifact. Normally, a build tool like Make will parse a configuration file ( Makefile) that contains all the commands required to build an artifact based on the source files and other resources inside the project. Build SystemĬMake is a cross-platform tool that automates the building process of software projects. Firstly, I’ll introduce some concepts regarding CMake, then we’ll run it with a C++ example. Today, I’m going to talk about how to get started with CMake for building a C++ application. However, please consider applying Modern CMake techniques whenever possible. Moreover, it may help developers that are working on pre-Modern CMake projects. This article is going to be kept available, since it’s part of the CMake’s history, and it may also be useful for showing the advantages of Modern CMake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |