CMake/Tests/RunCMake/CpsExportImportInstall/TestLibrary.cmake
Matthew Woehlke 9d83a1ed1f Tests: Rename certain CPS tests
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.
2025-02-25 12:18:13 -05:00

15 lines
401 B
CMake

project(TestLibrary C)
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/../install")
add_library(liba SHARED liba.c)
add_library(libb SHARED libb.c)
target_link_libraries(libb PUBLIC liba)
install(TARGETS liba EXPORT liba DESTINATION lib)
install(PACKAGE_INFO liba DESTINATION cps EXPORT liba)
install(TARGETS libb EXPORT libb DESTINATION lib)
install(PACKAGE_INFO libb DESTINATION cps EXPORT libb)