cmake_minimum_required(VERSION 3.13)

# Define the INTERFACE library target for the Lost + Found CC1101 driver
add_library(lf-cc1101 INTERFACE)

# Expose the source files from src/
target_sources(lf-cc1101 INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/src/cc1101.c
)

# Expose the public header file search path from include/
target_include_directories(lf-cc1101 INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/include
)

# Link hardware dependencies from the Pico C SDK
target_link_libraries(lf-cc1101 INTERFACE
    pico_stdlib
    hardware_spi
)
