
set(NAME "mltk_gecko_sdk_leddrv")
add_library(${NAME})
add_library(mltk::gecko_sdk::ledrv ALIAS ${NAME})


mltk_get(GECKO_SDK_BOARD_TARGET)
if(NOT GECKO_SDK_BOARD_TARGET)
    mltk_error("Must specify GECKO_SDK_BOARD_TARGET global property")
endif()


target_include_directories(${NAME} 
PUBLIC
    inc
)

target_compile_options(${NAME}  
PRIVATE 
    -Wimplicit-fallthrough=0)

target_sources(${NAME}  
PRIVATE 
    src/sl_led.c 
    src/sl_simple_led.c
)

target_link_libraries(${NAME}  
PRIVATE
    ${GECKO_SDK_BOARD_TARGET}
)