idf_component_register(SRCS main.cpp App.cpp Settings.cpp Led.cpp TaskMgr.cpp Wifi.cpp utilities.cpp
                        ProvisionSoftAP.cpp ReaderWriter.cpp Ota.cpp Mqtt.cpp Ble.cpp sensors/Bmp280.cpp
                        sensors/Bme68x.cpp sensors/Sensors.cpp sensors/LD2410.cpp Buffers.cpp SensorData.cpp
                    INCLUDE_DIRS "."
                    EMBED_TXTFILES ../html/logo.png ../html/provision.html
                    EMBED_TXTFILES ../certs/eventgrid.azure.pem ../certs/client1-authn-ID.key ../certs/client1-authn-ID.pem ../certs/bigfoot-inc.pem
                    )

#message(FATAL_ERROR "error ${ROLE}")
#if(ROLE EQUAL 1)

target_compile_options(${COMPONENT_LIB} PRIVATE)
#target_compile_options(${COMPONENT_LIB} PRIVATE -frtti)
#target_compile_options(${COMPONENT_LIB} PRIVATE -frtti)
#target_compile_options(${COMPONENT_LIB} PRIVATE)
#target_compile_options(${COMPONENT_TARGET} PRIVATE -frtti)


#if("${ROLE}" STREQUAL "SENDER")
#    add_compile_definitions(ROLE_SENDER)
#else()
#    add_compile_definitions(ROLE_RECEIVER)
#endif()

