mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
9d83a1ed1f
Rename the RunCMake/PackageInfo and RunCMake/CpsExportImport tests to indicate that they cover CPS generated by the install command. This opens space for similar tests that will cover CPS generation via the export command.
21 lines
500 B
CMake
21 lines
500 B
CMake
find_package(
|
|
test REQUIRED CONFIG
|
|
NO_DEFAULT_PATH
|
|
PATHS ${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
add_library(libb INTERFACE)
|
|
add_library(libc INTERFACE)
|
|
add_library(libd INTERFACE)
|
|
|
|
add_library(foo ALIAS libb)
|
|
add_library(bar ALIAS libc)
|
|
|
|
target_link_libraries(libd INTERFACE test::liba foo bar)
|
|
|
|
install(TARGETS libb EXPORT foo DESTINATION .)
|
|
install(PACKAGE_INFO foo DESTINATION cps EXPORT foo)
|
|
|
|
install(TARGETS libc libd EXPORT bar DESTINATION .)
|
|
install(PACKAGE_INFO bar DESTINATION cps EXPORT bar)
|