-
Notifications
You must be signed in to change notification settings - Fork 116
/
CMakeLists.txt
38 lines (28 loc) · 1.15 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
idf_build_get_property(target IDF_TARGET)
if(${IDF_TARGET} STREQUAL "esp32")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32")
elseif(${IDF_TARGET} STREQUAL "esp32s2")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32s2")
elseif(${IDF_TARGET} STREQUAL "esp32s3")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32s3")
elseif(${IDF_TARGET} STREQUAL "esp32c3")
set(links "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/esp32c3")
endif()
set(COMPONENT_ADD_INCLUDEDIRS include/
include/tool
include/typedef
include/image
include/math
include/nn
include/tvm
include/layer
include/detect
include/model_zoo)
register_component()
target_link_libraries(${COMPONENT_TARGET} INTERFACE ${links})
set(lib libcat_face_detect.a
libhuman_face_detect.a
libcolor_detect.a
libmfn.a
libdl.a)
target_link_libraries(${COMPONENT_TARGET} INTERFACE ${lib})