cmake_minimum_required(VERSION 3.13)

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

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

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

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