-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
71 lines (56 loc) · 1.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This file has a problem, see:
#
# https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/build-system.html#component-requirements
#
# It can't build a requirements list depending on the config choices. Need to figure out what todo about that.
set(
srcs
)
if(CONFIG_DEETS_USE_WIFI)
list(APPEND srcs
eventloop.cpp
smartconfig.cpp
wifi.cpp
flash.cpp
)
endif()
if(CONFIG_DEETS_USE_BUTTONS)
list(APPEND srcs
buttons.cpp
)
endif()
if(CONFIG_DEETS_USE_U8G2)
list(APPEND srcs u8g2_esp32_hal.c)
endif()
if(CONFIG_DEETS_USE_MPU6050)
list(APPEND srcs mpu6050.cpp madgwick.cpp)
endif()
if(CONFIG_DEETS_USE_I2C)
list(APPEND srcs i2c.cpp)
endif()
if(CONFIG_DEETS_USE_TCA9548A)
list(APPEND srcs tca9548a.cpp)
endif()
if(CONFIG_DEETS_USE_NRF24)
list(APPEND srcs nrf24.cpp)
endif()
if(CONFIG_DEETS_USE_RF95)
list(APPEND srcs rf95.cpp)
endif()
if(CONFIG_DEETS_USE_DRV2605)
list(APPEND srcs drv2605.cpp)
endif()
if(CONFIG_DEETS_USE_SHT3XDIS)
list(APPEND srcs sht3xdis.cpp)
endif()
if(CONFIG_DEETS_USE_HTTP)
list(APPEND srcs http.cpp)
list(APPEND requirements esp_http_server)
endif()
idf_component_register(
.
SRCS ${srcs}
INCLUDE_DIRS "include"
REQUIRES "driver"
)
target_compile_definitions(${COMPONENT_LIB} PUBLIC U8X8_WITH_USER_PTR)