mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
755a24ccae
Add `LICENSE` and `DEFAULT_LICENSE` arguments to the `PACKAGE_INFO` modes of the `install` and `export` commands. If not otherwise specified, the `LICENSE` will be taken from the project's `SPDX_LICENSE`, if available.
11 lines
403 B
CMake
11 lines
403 B
CMake
add_library(foo INTERFACE)
|
|
install(TARGETS foo EXPORT foo DESTINATION .)
|
|
set(args PACKAGE_INFO test EXPORT foo APPENDIX test)
|
|
install(${args} VERSION 1.0)
|
|
install(${args} LICENSE "BSD-3-Clause AND CC-BY-SA-4.0")
|
|
install(${args} DESCRIPTION "Test")
|
|
install(${args} HOMEPAGE_URL "example.com")
|
|
install(${args} DEFAULT_TARGETS foo)
|
|
install(${args} DEFAULT_CONFIGURATIONS test)
|
|
install(${args} PROJECT foo)
|