pimoroni-pico/drivers/bmp280/bmp280.cmake

13 lines
389 B
CMake

set(DRIVER_NAME bmp280)
add_library(${DRIVER_NAME} INTERFACE)
target_sources(${DRIVER_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}/bmp280.cpp
${CMAKE_CURRENT_LIST_DIR}/src/bmp280.c)
target_include_directories(${DRIVER_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}/src
${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(${DRIVER_NAME} INTERFACE pico_stdlib hardware_i2c pimoroni_i2c)