mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
c8ccd5a9e3
Add Common Package Specification support to export(EXPORT).
10 lines
316 B
CMake
10 lines
316 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(EXPORT mammal PACKAGE_INFO foo VERSION 1.0)
|
|
export(EXPORT canine PACKAGE_INFO foo APPENDIX dog)
|