Skip to content

Commit

Permalink
Merge pull request #772 from Daft-Freak/pico-example-320
Browse files Browse the repository at this point in the history
Pico examples changes
  • Loading branch information
Gadgetoid authored Aug 8, 2022
2 parents 6e516d7 + 4d2757b commit d5ec49b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/platformer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ project (platformer)
find_package (32BLIT CONFIG REQUIRED PATHS ../..)
blit_executable (platformer platformer.cpp)
blit_assets_yaml (platformer assets.yml)
blit_metadata (platformer metadata.yml)
blit_metadata (platformer metadata.yml)

# This removes support for set_screen_mode(hires) for Pico-based devices
# freeing up some extra RAM
target_compile_definitions(platformer PRIVATE ALLOW_HIRES=0)
6 changes: 6 additions & 0 deletions examples/tilt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.9)
project (tilt)
find_package (32BLIT CONFIG REQUIRED PATHS ../..)

if(32BLIT_PICO)
# No accelerometer
return()
endif()

blit_executable (tilt tilt.cpp)
blit_metadata (tilt metadata.yml)

0 comments on commit d5ec49b

Please sign in to comment.