From 412a30da0d069a263719d129069f6de976d61d94 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Wed, 29 Aug 2018 14:11:36 +0200 Subject: [PATCH] Fixed non-steam build, because I broke it :D --- CMakeLists.txt | 10 +++++++++- src/steam/steamworks_api_wrapper.c | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4815b24..25a9801 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,6 +150,14 @@ else (NOT MSVC) set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D__FNAME__=__FILE__") endif (NOT MSVC) +if (STEAM) + set(STEAM_SOURCES + src/steam/steamworks_api_wrapper + ) +else () + set(STEAM_SOURCES "") +endif () + # PROGRAMS: add_executable(breakhack src/main @@ -201,7 +209,7 @@ add_executable(breakhack src/object src/gui_util src/tooltip - src/steam/steamworks_api_wrapper + ${STEAM_SOURCES} ) # Sqlite has some warnings that I we don't need to see diff --git a/src/steam/steamworks_api_wrapper.c b/src/steam/steamworks_api_wrapper.c index 022a647..1eea76f 100644 --- a/src/steam/steamworks_api_wrapper.c +++ b/src/steam/steamworks_api_wrapper.c @@ -3,6 +3,7 @@ #include "steamworks_c_wrapper.h" #include "../util.h" #include "../defines.h" +#include "../gui.h" static Achievement g_Achievements[] = { _ACH_ID(BAD_DOG, "Bad Dog"),