mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-26 11:04:33 +00: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.
15 lines
344 B
CMake
15 lines
344 B
CMake
add_library(foo INTERFACE)
|
|
install(TARGETS foo EXPORT foo DESTINATION .)
|
|
install(
|
|
PACKAGE_INFO foo
|
|
DESTINATION cps
|
|
EXPORT foo
|
|
VERSION 1.2.3
|
|
VERSION_SCHEMA simple
|
|
COMPAT_VERSION 1.2.0
|
|
DEFAULT_TARGETS foo
|
|
DEFAULT_CONFIGURATIONS release debug
|
|
DESCRIPTION "Sample package"
|
|
HOMEPAGE_URL "https://www.example.com/package/foo"
|
|
)
|