From abb7b35011a9000aba093fff8f23193a7c8e7bde Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 19 May 2022 00:25:02 -0400 Subject: [PATCH] CMakeLists: Add option to produce a Steam build --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1085d51c92..f3b6140158 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)