From: penglei <1624952103@qq.com> Date: Thu, 10 Jul 2025 09:20:55 +0000 (+0800) Subject: 优化原像心率计算(补) X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=ffcc42dadb5c8c94fa627326642694861233ac9a;p=mirrors%2FFD230.git 优化原像心率计算(补) --- 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()