2022-05-30 14:10:48 +02:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
2022-05-31 09:47:29 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-volatile")
|
2022-05-30 14:10:48 +02:00
|
|
|
|
|
|
|
# Initialise pico_sdk from installed location
|
|
|
|
# (note this can come from environment, CMake cache etc)
|
|
|
|
set(PICO_SDK_PATH "/usr/share/pico-sdk")
|
|
|
|
|
|
|
|
# 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-05-31 13:00:33 +02:00
|
|
|
project(gbmanager VERSION "1.0.0" LANGUAGES C CXX ASM)
|
|
|
|
|
2022-05-30 14:10:48 +02:00
|
|
|
|
|
|
|
# Initialise the Raspberry Pi Pico SDK
|
|
|
|
pico_sdk_init()
|
|
|
|
|
2022-05-31 15:13:00 +02:00
|
|
|
add_subdirectory(src)
|