diff --git a/CMakeLists.txt b/CMakeLists.txt index 0873cad..983345f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ add_subdirectory(temperature) add_subdirectory(uart) # Add pico_stdlib library which aggregates commonly used features -target_link_libraries(main pico_stdlib temperature uart) +target_link_libraries(main pico_stdlib hardware_adc temperature uart) # create map/bin/hex/uf2 file in addition to ELF. diff --git a/temperature/CMakeLists.txt b/temperature/CMakeLists.txt index 80fd755..2a2eb5f 100644 --- a/temperature/CMakeLists.txt +++ b/temperature/CMakeLists.txt @@ -2,4 +2,4 @@ file(GLOB FILES *.c *.h) add_library(temperature ${FILES}) -target_link_libraries(temperature pico_stdlib) +target_link_libraries(temperature pico_stdlib hardware_adc)