Files
Matthew Woehlke 254916dfc6 export: Make PACKAGE_INFO, SBOM sub-commands
Change the interface of the `export` command so that `PACKAGE_INFO` and
`SBOM` are proper, first-level sub-commands, rather than being implemented via
`export(EXPORT ... (PACKAGE_INFO|SBOM) ...)`. This brings consistency with the
`install` command and also simplifies argument parsing.

Update the documentation and test cases accordingly. Some of the
argument handling test cases are now rather gratuitous, and are removed,
which also improves consistency with the `install` tests.
2026-01-12 14:05:27 -05:00

19 lines
406 B
CMake

add_library(mammal INTERFACE)
add_library(canine INTERFACE)
target_link_libraries(canine INTERFACE mammal)
install(TARGETS mammal EXPORT mammal DESTINATION .)
install(TARGETS canine EXPORT canine DESTINATION .)
export(
PACKAGE_INFO foo
EXPORT mammal
VERSION 1.0
DEFAULT_LICENSE "LGPL-3.0-or-later")
export(
PACKAGE_INFO foo
EXPORT canine
APPENDIX dog
DEFAULT_LICENSE "GPL-3.0-or-later")