Update CMakeLists.txt.

This commit is contained in:
Night Owl 2017-07-31 13:33:32 +05:00
parent e58f60981f
commit c253457862
3 changed files with 8 additions and 6 deletions

View File

@ -29,7 +29,7 @@ project (HLSDK-XASH3D)
option(USE_VGUI "Enable VGUI1. UNDONE" OFF)
option(USE_VGUI2 "Enable VGUI2. UNDONE" OFF)
option(USE_VOICEMGR "Enable VOICE MANAGER." OFF)
option(BUILD_CLIENT "Build client dll" OFF)
option(BUILD_CLIENT "Build client dll" ON)
option(BUILD_SERVER "Build server dll" ON)
#-----------------

View File

@ -25,7 +25,7 @@ project (CLDLL)
set (CLDLL_LIBRARY client)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings -DLINUX -D_LINUX -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL -w")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings -DLINUX -D_LINUX -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL -DCLIENT_FOG -w")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
set (CLDLL_SOURCES
@ -48,6 +48,7 @@ set (CLDLL_SOURCES
hl/hl_events.cpp
hl/hl_objects.cpp
hl/hl_weapons.cpp
shall/clientfog.cpp
ammo.cpp
ammo_secondary.cpp
ammohistory.cpp
@ -91,7 +92,7 @@ set (CLDLL_SOURCES
input_xash3d.cpp
scoreboard.cpp
MOTD.cpp)
include_directories (. hl/ ../dlls ../dlls/wpn_shared ../common ../engine ../pm_shared ../game_shared ../public)
include_directories (. hl/ ../dlls ../dlls/wpn_shared ../common ../engine ../pm_shared ../game_shared ../public shall ../dlls/shall)
if(USE_VOICEMGR)
#set(CLDLL_SOURCES

View File

@ -25,7 +25,7 @@ project (SVDLL)
set (SVDLL_LIBRARY server)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LINUX -DCLIENT_WEAPONS -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -fno-exceptions -w")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LINUX -DCLIENT_WEAPONS -DCLIENT_FOG -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -fno-exceptions -w")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
set (SVDLL_SOURCES
@ -127,13 +127,14 @@ set (SVDLL_SOURCES
world.cpp
xen.cpp
zombie.cpp
halloween/shall_map_fixes.cpp
shall/fog.cpp
shall/shall_map_fixes.cpp
../pm_shared/pm_debug.c
../pm_shared/pm_math.c
../pm_shared/pm_shared.c
)
include_directories (. wpn_shared ../common ../engine ../pm_shared ../game_shared ../public halloween)
include_directories (. wpn_shared ../common ../engine ../pm_shared ../game_shared ../public shall)
if(USE_VOICEMGR)
set(SVDLL_SOURCES