From ca326b431874c4ed2d958785930950ecbe58b15f Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Fri, 28 Jun 2024 16:29:58 +0800 Subject: Install libllwebrtc.so --- indra/llwebrtc/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'indra/llwebrtc') diff --git a/indra/llwebrtc/CMakeLists.txt b/indra/llwebrtc/CMakeLists.txt index fd1788c5d4..fb670322ff 100644 --- a/indra/llwebrtc/CMakeLists.txt +++ b/indra/llwebrtc/CMakeLists.txt @@ -59,3 +59,14 @@ ADD_CUSTOM_COMMAND(TARGET llwebrtc POST_BUILD # Add tests if (LL_TESTS) endif (LL_TESTS) + +if (INSTALL) + if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu) + set(_LIB lib/${ARCH}-linux-gnu) + elseif (EXISTS /lib64) + set(_LIB lib64) + else () + set(_LIB lib) + endif () + install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB}) +endif () -- cgit v1.2.3