@@ -11,9 +11,95 @@ author: RSP Systems A/S
1111
1212## Support Policy
1313
14- _ TODO: ...incomplete, please review documentation at a later point_
14+ The following shows the supported versions of the "CMake Scripts" project.
15+
16+ | Version | CMake | Release | Security Fixes Until |
17+ | ---------| -------------| ---------| ----------------------|
18+ | ` 1.x ` | ` 3.30 - ? ` | _ TBD_ | _ TBD_ |
19+ | ` 0.x ` * | ` 3.30 - ? ` | _ TBD_ | _ N/A_ |
20+
21+ _ * - current supported version._ \
22+ _ TBD - "To be decided"._ \
23+ _ N/A - "Not available"._
1524
1625## ` v0.x ` Highlights
1726
18- _ TODO: ...incomplete, please review documentation at a later point_
27+ ### "Mini" Testing Framework
28+
29+ (_ available since ` v0.1 ` _ )
30+
31+ A "mini" testing framework for testing your CMake modules and scripts.
32+
33+ ``` cmake
34+ define_test("has built assets" "has_built_assets")
35+ function(has_built_assets)
36+ assert_file_exists("resources/images/menu_bg.png" MESSAGE "No menu bg")
37+ assert_file_exists("resources/images/bg.png" MESSAGE "No background")
38+
39+ # ...etc
40+ endfunction()
41+ ```
42+
43+ See [ testing module] ( ./modules/testing/cmake/index.md ) for additional information.
44+
45+ ### Git
46+
47+ (_ available since ` v0.1 ` _ )
48+
49+ Git related utilities.
50+
51+ ``` cmake
52+ git_find_version_tag(
53+ OUTPUT version
54+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
55+ )
56+
57+ message("${version}") # 1.15.2
58+ ```
59+
60+ See [ git module] ( ./modules/git/index.md ) for additional information.
61+
62+ ### Version
63+
64+ (_ available since ` v0.1 ` _ )
65+
66+ Helpers for dealing with a project’s versioning
67+
68+ ``` cmake
69+ version_from_file(
70+ FILE "version"
71+ OUTPUT my_package
72+ )
73+
74+ message("${my_package}_SEMVER") # 2.0.0-beta.3+AF1004
75+ ```
76+
77+ See [ version module] ( ./modules/version/index.md ) for additional information.
78+
79+ ### Cache
80+
81+ (_ available since ` v0.1 ` _ )
82+
83+ Module that offers additional caching functionality (_ via CMake’s Cache Entry mechanism_ ).
84+
85+ ``` cmake
86+ cache_set(
87+ KEY foo
88+ VALUE "bar"
89+ TTL 5
90+ )
91+
92+ # ... Elsewhere in your cmake scripts, 5 seconds later...
93+
94+ cache_get(KEY foo)
95+
96+ message("${foo}") # (empty string)
97+ ```
98+
99+ See [ cache module] ( ./modules/cache/index.md ) for additional information.
100+
101+ ## Changelog
102+
103+ For additional information about the latest release, new features, changes or defect fixes, please review the
104+ [ Changelog] ( https://github.com/rsps/cmake-scripts/blob/main/CHANGELOG.md ) .
19105
0 commit comments