Browse Source

Update CMakeLists.txt.

halloween
Night Owl 7 years ago
parent
commit
c253457862
  1. 2
      CMakeLists.txt
  2. 5
      cl_dll/CMakeLists.txt
  3. 7
      dlls/CMakeLists.txt

2
CMakeLists.txt

@ -29,7 +29,7 @@ project (HLSDK-XASH3D)
option(USE_VGUI "Enable VGUI1. UNDONE" OFF) option(USE_VGUI "Enable VGUI1. UNDONE" OFF)
option(USE_VGUI2 "Enable VGUI2. UNDONE" OFF) option(USE_VGUI2 "Enable VGUI2. UNDONE" OFF)
option(USE_VOICEMGR "Enable VOICE MANAGER." 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) option(BUILD_SERVER "Build server dll" ON)
#----------------- #-----------------

5
cl_dll/CMakeLists.txt

@ -25,7 +25,7 @@ project (CLDLL)
set (CLDLL_LIBRARY client) 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(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
set (CLDLL_SOURCES set (CLDLL_SOURCES
@ -48,6 +48,7 @@ set (CLDLL_SOURCES
hl/hl_events.cpp hl/hl_events.cpp
hl/hl_objects.cpp hl/hl_objects.cpp
hl/hl_weapons.cpp hl/hl_weapons.cpp
shall/clientfog.cpp
ammo.cpp ammo.cpp
ammo_secondary.cpp ammo_secondary.cpp
ammohistory.cpp ammohistory.cpp
@ -91,7 +92,7 @@ set (CLDLL_SOURCES
input_xash3d.cpp input_xash3d.cpp
scoreboard.cpp scoreboard.cpp
MOTD.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) if(USE_VOICEMGR)
#set(CLDLL_SOURCES #set(CLDLL_SOURCES

7
dlls/CMakeLists.txt

@ -25,7 +25,7 @@ project (SVDLL)
set (SVDLL_LIBRARY server) 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(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
set (SVDLL_SOURCES set (SVDLL_SOURCES
@ -127,13 +127,14 @@ set (SVDLL_SOURCES
world.cpp world.cpp
xen.cpp xen.cpp
zombie.cpp zombie.cpp
halloween/shall_map_fixes.cpp shall/fog.cpp
shall/shall_map_fixes.cpp
../pm_shared/pm_debug.c ../pm_shared/pm_debug.c
../pm_shared/pm_math.c ../pm_shared/pm_math.c
../pm_shared/pm_shared.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) if(USE_VOICEMGR)
set(SVDLL_SOURCES set(SVDLL_SOURCES

Loading…
Cancel
Save