parent
2f7d1dd921
commit
91e1a7d424
@ -0,0 +1,31 @@
|
||||
configure_file(config.h.in ${PROJECT_BINARY_DIR}/src/config.h)
|
||||
|
||||
set(SOURCES
|
||||
gbmanager.cpp
|
||||
lcd.cpp
|
||||
ds18b20.cpp
|
||||
relais.cpp
|
||||
)
|
||||
|
||||
# Add executable. Default name is the project name, version 0.1
|
||||
add_executable(gbmanager ${SOURCES})
|
||||
|
||||
pico_set_program_name(gbmanager "gbmanager")
|
||||
pico_set_program_version(gbmanager ${PROJECT_VERSION})
|
||||
|
||||
pico_enable_stdio_uart(gbmanager 1)
|
||||
pico_enable_stdio_usb(gbmanager 0)
|
||||
|
||||
pico_generate_pio_header(gbmanager ${CMAKE_CURRENT_LIST_DIR}/ds18b20.pio)
|
||||
|
||||
# Add the standard library to the build
|
||||
target_link_libraries(gbmanager pico_stdlib)
|
||||
|
||||
# Add any user requested libraries
|
||||
target_link_libraries(gbmanager
|
||||
hardware_i2c
|
||||
hardware_gpio
|
||||
hardware_pio
|
||||
)
|
||||
|
||||
pico_add_extra_outputs(gbmanager)
|
Loading…
Reference in new issue