CMakeLists: Add option to produce a Steam build

This commit is contained in:
OatmealDome 2022-05-19 00:25:02 -04:00
parent 70bf89fa59
commit abb7b35011

View File

@ -71,6 +71,7 @@ option(ENABLE_VULKAN "Enables vulkan video backend" ON)
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence, show the current game on Discord" ON)
option(USE_MGBA "Enables GBA controllers emulation using libmgba" ON)
option(ENABLE_AUTOUPDATE "Enables support for automatic updates" ON)
option(STEAM "Creates a build for Steam" ON)
# Maintainers: if you consider blanket disabling this for your users, please
# consider the following points:
@ -937,6 +938,10 @@ else()
message(STATUS "libsystemd not found, disabling traversal server watchdog support")
endif()
if(STEAM)
add_definitions(-DSTEAM)
endif()
if (WIN32)
include_directories(Externals/WIL/include)
include_directories(Externals/OpenAL/include)