From ffcc42dadb5c8c94fa627326642694861233ac9a Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Thu, 10 Jul 2025 17:20:55 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=8E=9F=E5=83=8F=E5=BF=83?= =?utf8?q?=E7=8E=87=E8=AE=A1=E7=AE=97=EF=BC=88=E8=A1=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt b/code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt index ad9805352..6f44d7ee0 100644 --- a/code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt +++ b/code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt @@ -26,7 +26,7 @@ set(PRIVATE_DEFINES ) set(PUBLIC_DEFINES - PPG_PAH8009 + ) # use this when you want to add ccflags like -include xxx @@ -44,10 +44,14 @@ set(MAIN_COMPONENT false ) +if("PPG_PAH8009" IN_LIST DEFINES) + find_library(LIB_PATH_SPO2 algorithm/pah_spo2/V703/libv703_0_1.a ${CMAKE_CURRENT_SOURCE_DIR}) find_library(LIB_PATH_HR algorithm/pah_hr/V303009/libv307009_4.a ${CMAKE_CURRENT_SOURCE_DIR}) target_link_libraries(${TARGET_NAME} PRIVATE -Wl,--whole-archive ${LIB_PATH_HR} ${LIB_PATH_SPO2} PRIVATE -Wl,--whole-archive) +endif() + build_component() -- 2.17.1