Fixed non-steam build, because I broke it :D

This commit is contained in:
Linus Probert 2018-08-29 14:11:36 +02:00
parent 76d78600cb
commit 412a30da0d
2 changed files with 10 additions and 1 deletions

View File

@ -150,6 +150,14 @@ else (NOT MSVC)
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D__FNAME__=__FILE__") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D__FNAME__=__FILE__")
endif (NOT MSVC) endif (NOT MSVC)
if (STEAM)
set(STEAM_SOURCES
src/steam/steamworks_api_wrapper
)
else ()
set(STEAM_SOURCES "")
endif ()
# PROGRAMS: # PROGRAMS:
add_executable(breakhack add_executable(breakhack
src/main src/main
@ -201,7 +209,7 @@ add_executable(breakhack
src/object src/object
src/gui_util src/gui_util
src/tooltip src/tooltip
src/steam/steamworks_api_wrapper ${STEAM_SOURCES}
) )
# Sqlite has some warnings that I we don't need to see # Sqlite has some warnings that I we don't need to see

View File

@ -3,6 +3,7 @@
#include "steamworks_c_wrapper.h" #include "steamworks_c_wrapper.h"
#include "../util.h" #include "../util.h"
#include "../defines.h" #include "../defines.h"
#include "../gui.h"
static Achievement g_Achievements[] = { static Achievement g_Achievements[] = {
_ACH_ID(BAD_DOG, "Bad Dog"), _ACH_ID(BAD_DOG, "Bad Dog"),