Files
CMake/Tests/RunCMake/InstallPackageInfo/BadArgs2.cmake
T
Matthew Woehlke 755a24ccae CPS: Add export support for [default_]license
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.
2025-06-20 14:01:25 -04:00

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)