diff --git a/CMakeLists.txt b/CMakeLists.txt index 8827c367e..fd4990bc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake/Utils # Define the options. option(GL "Set to ON if targeting Desktop OpenGL 3.3" ${GL}) option(GLES "Set to ON if targeting OpenGL ES 3.0" ${GLES}) +option(STEAM_DECK "Set to ON to enable Valve Steam Deck specific build" ${STEAM_DECK}) option(RPI "Set to ON to enable Raspberry Pi specific build" ${RPI}) option(BUNDLED_CERTS "Set to ON to use bundled TLS/SSL certificates" ${BUNDLED_CERTS}) option(CEC "Set to ON to enable CEC" ${CEC}) @@ -279,6 +280,11 @@ if(GLES) add_definitions(-DUSE_OPENGLES) endif() +if(STEAM_DECK) + add_definitions(-DSTEAM_DECK) + message("-- Building for the Valve Steam Deck") +endif() + if(RPI) add_definitions(-D_RPI_) endif()