mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
Add tests to cover transitive usage requirements on installation and export of targets that link to object libraries. Issue: #14778
7 lines
194 B
CMake
7 lines
194 B
CMake
add_library(A OBJECT a.c)
|
|
add_library(UseA STATIC)
|
|
target_link_libraries(UseA PUBLIC A)
|
|
|
|
install(TARGETS UseA A EXPORT exp ARCHIVE DESTINATION lib)
|
|
install(EXPORT exp DESTINATION lib/cmake/exp)
|