generated from LailaTheElf/rp2040_c
42 lines
995 B
CMake
42 lines
995 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
|
|
set(PICO_SDK_PATH $ENV{PICO_SDK_PATH})
|
|
include(pico_sdk_import.cmake)
|
|
|
|
project(temp_sensor_debug)
|
|
project(temp_sensor)
|
|
|
|
pico_sdk_init()
|
|
|
|
add_subdirectory(libs/adafruitGFX/AdafruitGFXPico)
|
|
add_subdirectory(libs/wiznet)
|
|
|
|
# add_executable(temp_sensor_debug
|
|
# src/main.cpp
|
|
# src/max31856.cpp
|
|
# src/w5500_rp.cpp
|
|
# )
|
|
|
|
# target_link_libraries(temp_sensor_debug
|
|
# pico_stdlib hardware_spi
|
|
# AdafruitGFXPico
|
|
# w5500_driver wiznet_dhcp wiznet_mqtt
|
|
# )
|
|
# target_compile_options(temp_sensor_debug PRIVATE -Og)
|
|
# pico_enable_stdio_usb(temp_sensor_debug 1)
|
|
# pico_enable_stdio_uart(temp_sensor_debug 0)
|
|
|
|
add_executable(temp_sensor
|
|
src/main.cpp
|
|
src/max31856.cpp
|
|
src/w5500_rp.cpp
|
|
)
|
|
|
|
target_link_libraries(temp_sensor
|
|
pico_stdlib hardware_spi
|
|
AdafruitGFXPico
|
|
w5500_driver wiznet_dhcp wiznet_mqtt)
|
|
target_compile_options(temp_sensor PRIVATE -Ofast)
|
|
pico_enable_stdio_usb(temp_sensor 1)
|
|
pico_enable_stdio_uart(temp_sensor 0)
|