project(iotmi_pal_interface)

# For clang-format under current folder
include(${IOTMI_EMBEDDED_C_TOP_DIR}/cmake/clang-cxx-dev-tools.cmake)

add_library(iotmi_pal_interface INTERFACE)
add_library(iotmi::pal_interface ALIAS iotmi_pal_interface)

target_include_directories( iotmi_pal_interface
                            INTERFACE
                              "${IOTMI_EMBEDDED_C_TOP_DIR}/commonDependencies/core_mqtt/coreMQTT/source/interface"
                              "${CMAKE_CURRENT_LIST_DIR}/include" )

# Add WSS support to PAL interface if enabled
if(IOTMI_USE_WSS_PROVISIONEE)
    target_compile_definitions(iotmi_pal_interface INTERFACE IOTMI_USE_WSS_PROVISIONEE=1)
endif()
