You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
500 B
21 lines
500 B
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)
|