3. Tutorials¶
If you reached this section it means you can handle basic configuration. It’s time to see everything in detail and add more features.
Note
In provided examples:
CMake will be run in command-line format but CMake-GUI will work in a similar way, if behavior differs it will be noted explicitly
For the host platform
Linux
is chosen, use analogous commands if you use another host. E.g. usedir _builds
on Windows instead ofls _builds
Unix Makefiles
will be used as the generator. On *nix platforms this is the default generator. Peculiarities of other generators will be described explicitly
- 3.1. CMake stages
- 3.2. Out-of-source build
- 3.3. Workflow
- 3.4. Version and policies
- 3.5. Project declaration
- 3.6. Variables
- 3.7. CMake listfiles
- 3.8. Control structures
- 3.9. Executables
- 3.10. Tests
- 3.11. Libraries
- 3.12. Pseudo targets
- 3.13. Collecting sources
- 3.14. Usage requirements
- 3.15. Build types
- 3.16. configure_file
- 3.17. Install
- 3.18. Toolchain
- 3.19. Generator expressions
- 3.20. Properties
- 3.21. Packing
- 3.22. Continuous integration