projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f78a0
)
优化原像心率计算(补)
1950/4
author
penglei
<1624952103@qq.com>
Thu, 10 Jul 2025 09:20:55 +0000
(17:20 +0800)
committer
penglei
<1624952103@qq.com>
Thu, 10 Jul 2025 09:20:55 +0000
(17:20 +0800)
code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt
b/code/sdk/drivers/peripheral/ppg/pah8009/CMakeLists.txt
index
ad98053
..
6f44d7e
100644
(file)
--- 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()