generated from krzmaz/pico-w-webserver-example
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 1018 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.19)
set(PICO_BOARD pico_w)
include(cmake/utils.cmake)
get_pico_sdk_import_cmake()
# initialize pico-sdk from GIT
# (note this can come from environment, CMake cache etc)
set(PICO_SDK_FETCH_FROM_GIT on)
# pico_sdk_import.cmake is a single file copied from this SDK
# note: this must happen before project()
include(cmake/pico_sdk_import.cmake)
if(EXISTS cmake/credentials.cmake)
# copy it over from cmake/credentials.cmake.example
include(cmake/credentials.cmake)
else()
message(WARNING "Credentials file not found, using default values!")
set(WIFI_SSID "SSID" CACHE INTERNAL "WiFi SSID for examples")
set(WIFI_PASSWORD "password" CACHE INTERNAL "WiFi password for examples")
endif()
project(pico_w_neopixel_server C CXX ASM)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
add_compile_options(
-Wall
-Werror
)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
add_subdirectory(src)