CMake is a tool for defining and managing code builds, primarily for C++.
Mac OS has a GUI for CMake; however, because there are files that will need to be selected that reside in directories that are typically hidden, it is better to run the Curses version of CMake from the command line. Before beginning using CMake, make sure that Coin3D is installed and that the QUANTA library named libquanta32.a is available. CMake 3.2.2 is a third party application that provides additional functionality to OS X system and enjoys a popularity among Mac users. However, instead of installing it by dragging its icon to the Application folder, uninstalling CMake 3.2.2 may need you to do more than a simple drag-and-drop to the Trash.
CMake 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.
It accomplishes this by pairing with different platform-specific buildsystems; CMake is an intermediate step, that generates build input for different specific platforms. On Linux, CMake generates Makefiles; on Windows, it can generate Visual Studio projects, and so on.
Cmake Mac Os Deployment Target
Build behavior is defined in CMakeLists.txt
files - one in every directory of the source code. Each directory's CMakeLists
file defines what the buildsystem should do in that specific directory. It also defines which subdirectories CMake should handle as well.
Typical actions include:
- Build a library or an executable out of some of the source files in this directory.
- Add a filepath to the include-path used during build.
- Define variables that the buildsystem will use in this directory, and in its subdirectories.
- Generate a file, based on the specific build configuration.
- Locate a library which is somewhere in the source tree.
The final CMakeLists
files can be very clear and straightforward, because each is so limited in scope. Each only handles as much of the build as is present in the current directory.
Mac Os Download For Windows
For official resources on CMake, see CMake's Documentation and Tutorial.