mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-05 14:49:39 -06:00
Add a test that validates that we can export a package in CPS format and import it again. This is fairly simplistic at the moment, but still serves to validate some recent fixes that are not covered by more targeted unit tests.
15 lines
401 B
CMake
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)
|