Answers
The following are the answers to the preceding questions:
- You can start the configure step of CMake with the following command:
cmake -S /path/to/source -
B /path/to/build
- Single-configuration generators will only generate build files for one type of build, such as debug or release builds. Multi-configuration generators will generate build instructions for all available build types in one go.
- You can start the build step of CMake using:
cmake -build /path/to/build
- The following executable from CMake can be used to run tests:
ctest
- The following executable from CMake is used for packaging:
cpack
- Targets in CMake are logical units around which CMake organizes a build. They can be executables, libraries, or contain custom commands.
- Unlike variables, properties are attached to a specific object or scope.
- CMake presets are used to share working configurations for a build.