diff options
Diffstat (limited to 'main/CMakeLists.txt')
-rw-r--r-- | main/CMakeLists.txt | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index e24d9a5..30685a4 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -1,22 +1,39 @@ cmake_minimum_required(VERSION 3.29) -include(lib/pico-sdk/pico_sdk_init.cmake) - -project(puzzlebox_main C CXX ASM) - set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) set(CMAKE_EXPORT_COMPILE_COMMANDS 1) set(PICO_BOARD pico_w) +include(lib/pico-sdk/pico_sdk_init.cmake) +include(lib/FreeRTOS-Kernel/portable/ThirdParty/GCC/RP2040/FreeRTOS_Kernel_import.cmake) +include(../proto/include.cmake) + +project(puzzlebox_main C CXX ASM) + pico_sdk_init() add_executable(main - main.cpp -) + main.c + init.c + sock.c + i2c.c + ) pico_enable_stdio_usb(main 1) -# pico_enable_stdio_uart(main 1) +pico_enable_stdio_uart(main 0) pico_add_extra_outputs(main) + +include_directories(lib/pico-sdk/lib/lwip/contrib/ports/freertos/include) + target_include_directories(main PRIVATE ${CMAKE_CURRENT_LIST_DIR}) -target_link_libraries(main pico_cyw43_arch_lwip_threadsafe_background pico_stdlib) +target_link_libraries(main + pico_cyw43_arch_lwip_sys_freertos + pico_stdlib + hardware_i2c + FreeRTOS-Kernel + FreeRTOS-Kernel-Heap4 + puzbus + mpack + ) + |