index.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. CMake Tutorial
  2. **************
  3. Introduction
  4. ============
  5. The CMake tutorial provides a step-by-step guide that covers common build
  6. system issues that CMake helps address. Seeing how various topics all
  7. work together in an example project can be very helpful.
  8. Steps
  9. =====
  10. .. include:: include/source.rst
  11. |tutorial_source|
  12. Each step has its own subdirectory containing code that may be used as a
  13. starting point. The tutorial examples are progressive so that each step
  14. provides the complete solution for the previous step.
  15. .. toctree::
  16. :maxdepth: 2
  17. Before You Begin
  18. Getting Started with CMake
  19. CMake Language Fundamentals
  20. Configuration and Cache Variables
  21. In-Depth CMake Target Commands
  22. In-Depth CMake Library Concepts
  23. In-Depth System Introspection
  24. Custom Commands and Generated Files
  25. Testing and CTest
  26. Installation Commands and Concepts
  27. Finding Dependencies
  28. Miscellaneous Features
  29. ..
  30. Whenever a step above is renamed or removed, leave forwarding text in
  31. its original document file, and list it below to preserve old links
  32. to cmake.org/cmake/help/latest/ URLs.
  33. .. toctree::
  34. :maxdepth: 1
  35. :hidden:
  36. A Basic Starting Point
  37. Adding a Library
  38. Adding Usage Requirements for a Library
  39. Adding Generator Expressions
  40. Installing and Testing
  41. Adding Support for a Testing Dashboard
  42. Adding System Introspection
  43. Adding a Custom Command and Generated File
  44. Packaging an Installer
  45. Selecting Static or Shared Libraries
  46. Adding Export Configuration
  47. Packaging Debug and Release