Locate a library which is somewhere in the source tree.Generate a file, based on the specific build configuration.Define variables that the buildsystem will use in this directory, and in its subdirectories. Add a filepath to the include-path used during build.Build a library or an executable out of some of the source files in this directory.It also defines which subdirectories CMake should handle as well. Each directory's CMakeLists file defines what the buildsystem should do in that specific directory. On Linux, CMake generates Makefiles on Windows, it can generate Visual Studio projects, and so on.īuild behavior is defined in CMakeLists.txt files - one in every directory of the source code. It accomplishes this by pairing with different platform-specific buildsystems CMake is an intermediate step, that generates build input for different specific platforms. CMake is a tool for defining and managing code builds, primarily for C++.ĬMake is a cross-platform tool the idea is to have a single definition of how the project is built - which translates into specific build definitions for any supported platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |