From 87bb0933073f2255bde2ce52be7a50d130387c4b Mon Sep 17 00:00:00 2001 From: yufeng Date: Wed, 11 Oct 2023 15:52:50 +0800 Subject: [PATCH] OrbbecSDKConfig.cmake add define for script files --- OrbbecSDKConfig.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OrbbecSDKConfig.cmake b/OrbbecSDKConfig.cmake index 45690583..df8fc4bc 100644 --- a/OrbbecSDKConfig.cmake +++ b/OrbbecSDKConfig.cmake @@ -30,7 +30,14 @@ file(GLOB OrbbecSDK_DLL_FILES ${OrbbecSDK_LIBS_DIR}/*${ORBBEC_DLL_SUFFIX}*) # runtime resource file should copy to cwd. file(GLOB OrbbecSDK_RUNTIME_RESOURCE_FILES ${OrbbecSDK_LIBS_DIR}/*depthengine*) -# config file +# config file file(GLOB OrbbecSDK_CONFIG_FILES ${CMAKE_CURRENT_LIST_DIR}/misc/config/*) +# script +if(WIN32) + file(GLOB OrbbecSDK_SCRIPT_FILES ${CMAKE_CURRENT_LIST_DIR}/misc/scripts/obsensor_metadata_win10*) +else() + file(GLOB OrbbecSDK_SCRIPT_FILES ${CMAKE_CURRENT_LIST_DIR}/misc/scripts/*rules*) +endif() + set(OrbbecSDK_FOUND TRUE) \ No newline at end of file