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 # ----------------------------------------------------------------------------