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.
cmake/Tests/RunCMake/export/FindDependencyExportShared....

16 lines
440 B

set(CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_DEPENDENCIES "1942b4fa-b2c5-4546-9385-83f254070067")
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
enable_language(CXX)
find_package(P1)
find_package(P2)
find_package(P3)
find_package(P4)
add_library(mylib SHARED empty.cpp)
target_link_libraries(mylib PRIVATE l1 l2 l3 l4)
install(TARGETS mylib EXPORT mytargets)
export(EXPORT mytargets EXPORT_PACKAGE_DEPENDENCIES FILE mytargets.cmake)