Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Spooks4576 committed Oct 31, 2024
1 parent cec9633 commit f488ced
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ endif()
if(DEFINED ENV{WITH_SCREEN} AND "$ENV{WITH_SCREEN}" STREQUAL "1")
add_compile_definitions(WITH_SCREEN=1)
endif()

if(DEFINED ENV{TFT_WIDTH})
add_compile_definitions(TFT_WIDTH=$ENV{TFT_WIDTH})
else()
add_compile_definitions(TFT_WIDTH=0)
endif()

if(DEFINED ENV{TFT_HEIGHT})
add_compile_definitions(TFT_HEIGHT=$ENV{TFT_HEIGHT})
else()
add_compile_definitions(TFT_HEIGHT=0)
endif()

# Input type (touchscreen, joystick, cardputer)
Expand Down

0 comments on commit f488ced

Please sign in to comment.