Files
CMake/Tests/RunCMake/ExportPackageInfo/NoProjectMetadata.cmake
Matthew Woehlke da97747dac CPS: Support additional metadata
Add support for specifying CPS's supplemental `description` and
`website` attributes. Add ability to inherit these from the `project()`,
similar to how version information can be inherited.
2025-06-03 16:50:46 -04:00

16 lines
280 B
CMake

project(foo
VERSION 1.2.3
COMPAT_VERSION 1.1.0
DESCRIPTION "Sample package"
HOMEPAGE_URL "https://www.example.com/package/foo"
)
add_library(foo INTERFACE)
install(TARGETS foo EXPORT foo DESTINATION .)
export(
EXPORT foo
PACKAGE_INFO foo
NO_PROJECT_METADATA
)