File tree Expand file tree Collapse file tree 7 files changed +17
-20
lines changed Expand file tree Collapse file tree 7 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 11# [ ` DynamicVersion.cmake ` ] ( DynamicVersion.cmake )
22
3+ <!-- SPHINX-START -->
4+
35Calculate the project version from the git tags or ` .git_archival.txt ` if the source is not a git repository
46
57## Example
@@ -27,3 +29,5 @@ add_dependencies(version_lib My_Project_Version)
2729set_property(SOURCE version.cpp.in APPEND PROPERTY
2830 OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/.version)
2931```
32+
33+ <!-- SPHINX-END -->
Original file line number Diff line number Diff line change 11# [ ` PackageComps.cmake ` ] ( PackageComps.cmake )
22
3+ <!-- SPHINX-START -->
4+
35Export and import targets as individual components. Special components ` shared ` and ` static `
46
57## Example
@@ -54,3 +56,5 @@ project(Downstream_Project)
5456
5557find_package(My_Project COMPONENTS my_component)
5658```
59+
60+ <!-- SPHINX-END -->
Original file line number Diff line number Diff line change 11# DynamicVersion
22
33``` {include} ../../cmake/DynamicVersion.md
4- : start-after: "# [`DynamicVersion.cmake`](DynamicVersion.cmake)"
4+ :start-after: <!-- SPHINX-START -->
5+ :end-before: <!-- SPHINX-END -->
56```
Original file line number Diff line number Diff line change 11# PackageComps
22
33``` {include} ../../cmake/PackageComps.md
4- : start-after: "# [`PackageComps.cmake`](PackageComps.cmake)"
4+ :start-after: <!-- SPHINX-START -->
5+ :end-before: <!-- SPHINX-END -->
56```
Original file line number Diff line number Diff line change 11# CMake modules
22
33``` {toctree}
4- : maxdepth: 1
5- : titlesonly: true
6- : caption: Contents
7- : glob: true
4+ :titlesonly: true
85
9- ./*
6+ DynamicVersion
7+ PackageComps
108```
Original file line number Diff line number Diff line change 22
33CMakeExtraUtils is a collection of cmake modules designed to help you manage and export your cmake project.
44
5- See the [ installation guide] ( install ) for details on how to import this project and
6- [ CMake modules] ( cmake_modules/index ) for the modules available.
7-
85``` {toctree}
9- : maxdepth: 2
10- : titlesonly: true
11- : caption: Contents
6+ :hidden: true
127
13- install
8+ self
149cmake_modules/index
1510```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments