-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (34 loc) · 1.08 KB
/
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
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.12)
# Set your project name here
set(PROJECT_NAME my_project)
# Set your project sources here
set(PROJECT_SOURCES
main.cpp
)
# --- Here Be Boilerplate ---
if(NOT PICO_SDK_PATH)
message(WARNING "PICO_SDK_PATH not specified. Forcing fetch from git!")
set(PICO_SDK_FETCH_FROM_GIT true)
endif()
# Pull in PICO SDK
include(pico_sdk_import.cmake)
# set up proejct
project(${PROJECT_NAME} C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Initialize the SDK
pico_sdk_init()
# Find the PicoSystem library
include(picosystem_sdk_import.cmake)
# Create the output target
picosystem_executable(
${PROJECT_NAME}
${PROJECT_SOURCES}
)
# --- End Of Boilerplate ---
# Set your build options here
pixel_double(${PROJECT_NAME}) # 120x120 resolution game, pixel-doubled to 240x240
disable_startup_logo(${PROJECT_NAME}) # Skip the PicoSystem splash
#no_font(${PROJECT_NAME}) # Omit the default font
#no_spritesheet(${PROJECT_NAME}) # Omit the default spritesheet
#no_overclock(${PROJECT_NAME}) # Don't overclock