forked from Spritetm/libesphttpd
-
Notifications
You must be signed in to change notification settings - Fork 45
/
CMakeLists.txt
35 lines (31 loc) · 1.21 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
set (libesphttpd_SOURCES "core/auth.c"
"core/httpd-freertos.c"
"core/httpd.c"
"core/sha1.c"
"core/libesphttpd_base64.c"
"util/captdns.c"
"util/cgi_common.c"
"util/cgiflash.c"
"util/cgiredirect.c"
"util/cgiwebsocket.c"
"util/cgiwifi.c"
"util/cgiredirect.c"
"util/esp32_httpd_vfs.c"
"util/esp32_wifi.c")
set (libesphttpd_PRIV_INCLUDE_DIRS "core"
"util")
if (CONFIG_ESPHTTPD_USE_ESPFS)
list (APPEND libesphttpd_SOURCES "core/httpd-espfs.c")
list (APPEND libesphttpd_PRIV_INCLUDE_DIRS "../espfs/include")
endif (CONFIG_ESPHTTPD_USE_ESPFS)
idf_component_register(
SRCS "${libesphttpd_SOURCES}"
INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS "${libesphttpd_PRIV_INCLUDE_DIRS}"
REQUIRES "app_update"
"json"
"spi_flash"
"wpa_supplicant"
"openssl"
)
target_compile_definitions (${COMPONENT_TARGET} PUBLIC -DFREERTOS)