From bc34f01e20aaba7327cfd9b38abfa6517519e0a7 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Tue, 12 Nov 2024 18:46:22 +0100 Subject: [PATCH] CMake: Add installed deps to export set --- CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 696f60407..d71bbd398 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -308,13 +308,7 @@ else() add_library(Usrsctp::Usrsctp ALIAS usrsctp) if(INSTALL_DEPS_LIBS) - # usrsctp lacks an export set - install(TARGETS usrsctp EXPORT UsrsctpTargets) - install(EXPORT UsrsctpTargets - FILE UsrsctpTargets.cmake - NAMESPACE Usrsctp:: - DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/usrsctp - EXCLUDE_FROM_ALL) + install(TARGETS usrsctp EXPORT LibDataChannelTargets) # Fix directories set_target_properties(usrsctp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "") target_include_directories(usrsctp INTERFACE @@ -381,7 +375,7 @@ else() if(NOT TARGET srtp2) add_subdirectory(deps/libsrtp EXCLUDE_FROM_ALL) if(INSTALL_DEPS_LIBS) - install(TARGETS srtp2) + install(TARGETS srtp2 EXPORT LibDataChannelTargets) endif() endif() target_compile_definitions(datachannel PRIVATE RTC_SYSTEM_SRTP=0) @@ -461,7 +455,7 @@ else() else() add_subdirectory(deps/libjuice EXCLUDE_FROM_ALL) if(INSTALL_DEPS_LIBS) - install(TARGETS juice) + install(TARGETS juice EXPORT LibDataChannelTargets) endif() target_compile_definitions(datachannel PRIVATE RTC_SYSTEM_JUICE=0) target_compile_definitions(datachannel-static PRIVATE RTC_SYSTEM_JUICE=0)