forked from espressif/esp-qcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
11 lines (10 loc) · 809 Bytes
/
CMakeLists.txt
File metadata and controls
11 lines (10 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
idf_component_register(SRC_DIRS "src/console" "src/iothub" "src/log" "src/mqtt" "src/provisioning" "src/utils" "src/provisioning/qrcode/src"
INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS "src/provisioning/qrcode/include"
REQUIRES "wifi_provisioning" "json" "mqtt" "app_update" "esp_https_ota" "console" "fatfs" "nvs_flash" "spi_flash")
target_compile_options(${COMPONENT_LIB} PRIVATE -DLOG_LOCAL_LEVEL=ESP_LOG_VERBOSE)
if(CONFIG_AUTH_MODE_CERT)
target_add_binary_data(${COMPONENT_TARGET} "${QCLOUD_PATH}/config/certs/qcloud_root_cert.crt" TEXT)
target_add_binary_data(${COMPONENT_TARGET} "${QCLOUD_PATH}/config/certs/dev_cert.crt" TEXT)
target_add_binary_data(${COMPONENT_TARGET} "${QCLOUD_PATH}/config/certs/dev_private.key" TEXT)
endif()