aboutsummaryrefslogtreecommitdiff
path: root/main/CMakeLists.txt
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-31 16:34:59 +0200
committerlonkaars <loek@pipeframe.xyz>2024-03-31 16:34:59 +0200
commit41932400f68b7af671ee18df958c078e0c8d06e1 (patch)
tree1d9089134e0003f35db75b476d17d641128785cf /main/CMakeLists.txt
parent5ebe21c85c7001053c00d20d25195fececbcc7ce (diff)
wifi hello world working
Diffstat (limited to 'main/CMakeLists.txt')
-rw-r--r--main/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
new file mode 100644
index 0000000..11b12c5
--- /dev/null
+++ b/main/CMakeLists.txt
@@ -0,0 +1,22 @@
+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(PICO_BOARD pico_w)
+
+pico_sdk_init()
+
+add_executable(main
+ main.cpp
+)
+
+pico_enable_stdio_usb(main 1)
+# pico_enable_stdio_uart(main 1)
+pico_add_extra_outputs(main)
+target_include_directories(main PRIVATE ${CMAKE_CURRENT_LIST_DIR})
+target_link_libraries(main pico_cyw43_arch_lwip_threadsafe_background pico_stdlib)
+