2022-05-30 14:10:48 +02:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
2022-12-23 13:17:36 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2022-05-31 09:47:29 +02:00
|
|
|
|
2022-12-23 12:23:05 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fno-exceptions")
|
2022-05-30 14:10:48 +02:00
|
|
|
|
|
|
|
# Initialise pico_sdk from installed location
|
|
|
|
# (note this can come from environment, CMake cache etc)
|
2024-08-13 15:07:59 +02:00
|
|
|
#set(PICO_SDK_PATH "/usr/share/pico-sdk")
|
2022-05-30 14:10:48 +02:00
|
|
|
|
|
|
|
# Pull in Raspberry Pi Pico SDK (must be before project)
|
2022-05-31 15:13:00 +02:00
|
|
|
include("cmake/pico_sdk_import.cmake")
|
2022-05-30 14:10:48 +02:00
|
|
|
|
2022-12-23 20:14:51 +01:00
|
|
|
project(gbmanager VERSION "1.0.3" LANGUAGES C CXX ASM)
|
2022-05-31 13:00:33 +02:00
|
|
|
|
2022-05-30 14:10:48 +02:00
|
|
|
# Initialise the Raspberry Pi Pico SDK
|
|
|
|
pico_sdk_init()
|
|
|
|
|
2022-06-01 13:10:01 +02:00
|
|
|
add_subdirectory(modules/pico-onewire)
|
2022-06-03 14:33:42 +02:00
|
|
|
add_subdirectory(modules/fmt)
|
2022-12-23 13:29:10 +01:00
|
|
|
add_subdirectory(src)
|