aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/drv/rp2040/include.cmake
blob: 6d25e96aa2407104184e1a6fe50ce8d5f2cf4726 (plain)
1
2
3
4
5
6
7
8
9
10
11
if(NOT PICO_PLATFORM STREQUAL "rp2040")
	return()
endif()

target_sources(pbdrv-mod PRIVATE "${CMAKE_CURRENT_LIST_DIR}/mod.c")
target_link_libraries(pbdrv-mod PRIVATE hardware_i2c_headers pico_i2c_slave_headers)
target_include_directories(pbdrv-mod INTERFACE "${CMAKE_CURRENT_LIST_DIR}")

# pico-stdlib is compatible with C stdlib
include("${CMAKE_CURRENT_LIST_DIR}/../../ext/stdlib/include.cmake")