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"),