-
Notifications
You must be signed in to change notification settings - Fork 27
/
CMakeLists.txt
42 lines (35 loc) · 1.57 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
38
39
40
41
42
# Makefile - STLIB SDK
#
# Copyright (c) 2016 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_HAS_STLIB)
zephyr_library()
if(CONFIG_VL53L0X)
zephyr_include_directories(sensor/vl53l0x/api/core/inc
${PROJECT_SOURCE_DIR}/drivers/sensor/st/vl53l0x)
zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api.c)
zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_ranging.c)
zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_calibration.c)
zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_core.c)
zephyr_library_sources(sensor/vl53l0x/api/core/src/vl53l0x_api_strings.c)
endif()
if(CONFIG_VL53L1X)
zephyr_include_directories(sensor/vl53l1x/api/core/inc
${PROJECT_SOURCE_DIR}/drivers/sensor/st/vl53l1x)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api_calibration.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_wait.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_core.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api_core.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_api_preset_modes.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_core_support.c)
zephyr_library_sources(sensor/vl53l1x/api/core/src/vl53l1_register_funcs.c)
endif()
if(CONFIG_AUDIO_MPXXDTYY)
zephyr_include_directories(audio/microphone)
zephyr_library_sources(audio/microphone/OpenPDMFilter.c)
endif()
endif()
# STMEMSC - Hardware Abstraction Layer for ST sensor
add_subdirectory_ifdef(CONFIG_HAS_STMEMSC sensor/stmemsc)