mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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.
16 lines
280 B
CMake
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
|
|
)
|