idf_component_register() add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../../sdk" cb-sdk-build) target_link_libraries(${COMPONENT_LIB} INTERFACE cardboy_sdk cardboy_apps ) target_compile_definitions(${COMPONENT_LIB} INTERFACE CARDBOY_SDK_BACKEND_HEADER=\"cardboy/backend/esp_backend.hpp\" CARDBOY_SDK_ACTIVE_BACKEND_TYPE=cardboy::backend::EspBackend ) target_include_directories(${COMPONENT_LIB} INTERFACE ${CMAKE_CURRENT_LIST_DIR}/../../main/include ) target_compile_options(${COMPONENT_LIB} INTERFACE -fjump-tables -ftree-switch-conversion)