Files
CMake/Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake
Brad King 7776ce98c3 Tests: Add cases for usage requirements of linked object libs
Add tests to cover transitive usage requirements on installation and
export of targets that link to object libraries.

Issue: #14778
2018-03-01 09:28:00 -05:00

7 lines
192 B
CMake

add_library(A OBJECT a.c)
add_library(UseA STATIC)
target_link_libraries(UseA PUBLIC A)
install(TARGETS UseA EXPORT exp ARCHIVE DESTINATION lib)
install(EXPORT exp DESTINATION lib/cmake/exp)