#
# CMakeLists.txt file for iotc-c-lib
#
cmake_minimum_required(VERSION 3.5)
set(COMPONENT_SRCDIRS       "src"
                            )

set(COMPONENT_SRCS          "${COMPONENT_DIR}/src/iotconnect_common.c"
							"${COMPONENT_DIR}/src/iotconnect_discovery.c"
							"${COMPONENT_DIR}/src/iotconnect_event.c"
							"${COMPONENT_DIR}/src/iotconnect_lib.c"
							"${COMPONENT_DIR}/src/iotconnect_telemetry.c"
                            )

set(COMPONENT_INCLUDEDIRS   "include"
                            )

set(COMPONENT_REQUIRES      "json")

idf_component_register(     SRC_DIRS        "${COMPONENT_SRCDIRS}"
                            INCLUDE_DIRS    "${COMPONENT_INCLUDEDIRS}"
                            REQUIRES        "${COMPONENT_REQUIRES}"
                            )

target_sources(${COMPONENT_LIB} PRIVATE ${COMPONENT_SRCS})

idf_component_get_property(freertos_dir freertos COMPONENT_DIR)