mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
c8ccd5a9e3
Add Common Package Specification support to export(EXPORT).
12 lines
280 B
CMake
12 lines
280 B
CMake
add_library(foo foo.cxx)
|
|
add_library(bar foo.cxx)
|
|
target_link_libraries(bar foo)
|
|
|
|
install(TARGETS foo EXPORT foo)
|
|
export(EXPORT foo NAMESPACE ${NAMESPACE})
|
|
export(EXPORT foo PACKAGE_INFO foo)
|
|
|
|
install(TARGETS bar EXPORT bar)
|
|
export(EXPORT bar)
|
|
export(EXPORT bar PACKAGE_INFO bar)
|