From 311664d5a0529c171d764ef61bca23f41fcf76b7 Mon Sep 17 00:00:00 2001 From: zhaoxi <535394140@qq.com> Date: Wed, 12 Feb 2025 16:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20=E8=A7=A3=E5=86=B3=20light=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=20SDK=20=E6=97=B6=EF=BC=8C=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=8A=A8=E6=80=81=E5=BA=93=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/light/CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/modules/light/CMakeLists.txt b/modules/light/CMakeLists.txt index 6fd1088..89ff15c 100644 --- a/modules/light/CMakeLists.txt +++ b/modules/light/CMakeLists.txt @@ -30,6 +30,36 @@ rmvl_add_module( # ---------------------------------------------------------------------------- rmvl_generate_module_para(light) +# -------------------------------------------------------------------------- +# Install the necessary library for OS +# -------------------------------------------------------------------------- +foreach(SDK OPTLightCtrl) + if(${SDK}_FOUND AND DEFINED ${SDK}_LIB) + if(IS_SYMLINK "${${SDK}_LIB}") + get_filename_component(lib_realname ${${SDK}_LIB} REALPATH) + set(lib_install ${lib_realname} ${${SDK}_LIB}) + else() + set(lib_install ${${SDK}_LIB}) + endif() + install( + FILES ${lib_install} + DESTINATION ${RMVL_3P_LIB_INSTALL_PATH} + ) + if(DEFINED ${SDK}_DLL) + if(IS_SYMLINK "${${SDK}_DLL}") + get_filename_component(dll_realname ${${SDK}_DLL} REALPATH) + set(dll_install ${dll_realname} ${${SDK}_DLL}) + else() + set(dll_install ${${SDK}_DLL}) + endif() + install( + FILES ${dll_install} + DESTINATION ${RMVL_BIN_INSTALL_PATH} + ) + endif() + endif() +endforeach() + # ---------------------------------------------------------------------------- # Build Python bindings # ----------------------------------------------------------------------------