Skip to content

Commit

Permalink
cmake build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettcolin committed Dec 2, 2011
1 parent 2caf602 commit ccfd524
Show file tree
Hide file tree
Showing 7 changed files with 395 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
cmake_minimum_required(VERSION 2.6)
PROJECT(Quake3)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
ADD_SUBDIRECTORY(code)
ADD_SUBDIRECTORY(code/botlib)
ADD_SUBDIRECTORY(code/renderer)
ADD_SUBDIRECTORY(code/cgame)
ADD_SUBDIRECTORY(code/game)
ADD_SUBDIRECTORY(code/q3_ui)
83 changes: 83 additions & 0 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#INCLUDE_DIRECTORIES("C:\\Program Files\\Microsoft Platform SDK for Windows Server 2003 R2\\Include\\mfc")
SET(SRCS
client/cl_cgame.c
client/cl_cin.c
client/cl_console.c
client/cl_input.c
client/cl_keys.c
client/cl_main.c
client/cl_net_chan.c
client/cl_parse.c
client/cl_scrn.c
client/cl_ui.c
qcommon/cm_load.c
qcommon/cm_patch.c
qcommon/cm_polylib.c
qcommon/cm_test.c
qcommon/cm_trace.c
qcommon/cmd.c
qcommon/common.c
qcommon/cvar.c
qcommon/files.c
qcommon/huffman.c
qcommon/md4.c
qcommon/msg.c
qcommon/net_chan.c
game/q_math.c
game/q_shared.c
client/snd_adpcm.c
client/snd_dma.c
client/snd_mem.c
client/snd_mix.c
client/snd_wavelet.c
server/sv_bot.c
server/sv_ccmds.c
server/sv_client.c
server/sv_game.c
server/sv_init.c
server/sv_main.c
server/sv_net_chan.c
server/sv_snapshot.c
server/sv_world.c
qcommon/unzip.c
qcommon/vm.c
qcommon/vm_interpreted.c
qcommon/vm_x86.c
win32/win_input.c
win32/win_main.c
win32/win_net.c
win32/win_shared.c
win32/win_snd.c
win32/win_syscon.c
win32/win_wndproc.c
game/bg_public.h
cgame/cg_public.h
client/client.h
qcommon/cm_local.h
qcommon/cm_patch.h
qcommon/cm_polylib.h
qcommon/cm_public.h
game/g_public.h
ui/keycodes.h
client/keys.h
game/q_shared.h
qcommon/qcommon.h
qcommon/qfiles.h
renderer/qgl.h
win32/resource.h
server/server.h
client/snd_local.h
client/snd_public.h
game/surfaceflags.h
renderer/tr_local.h
renderer/tr_public.h
cgame/tr_types.h
ui/ui_public.h
qcommon/unzip.h
qcommon/vm_local.h
win32/win_local.h
win32/qe3.ico
win32/winquake.rc)
ADD_EXECUTABLE(Quake3 WIN32 ${SRCS})
ADD_DEPENDENCIES(Quake3 Renderer BotLib)
TARGET_LINK_LIBRARIES(Quake3 Renderer BotLib winmm wsock32)
64 changes: 64 additions & 0 deletions code/botlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
SET(SRCS
be_aas_bspq3.c
be_aas_cluster.c
be_aas_debug.c
be_aas_entity.c
be_aas_file.c
be_aas_main.c
be_aas_move.c
be_aas_optimize.c
be_aas_reach.c
be_aas_route.c
be_aas_routealt.c
be_aas_sample.c
be_ai_char.c
be_ai_chat.c
be_ai_gen.c
be_ai_goal.c
be_ai_move.c
be_ai_weap.c
be_ai_weight.c
be_ea.c
be_interface.c
l_crc.c
l_libvar.c
l_log.c
l_memory.c
l_precomp.c
l_script.c
l_struct.c
aasfile.h
be_aas_bsp.h
be_aas_cluster.h
be_aas_debug.h
be_aas_def.h
be_aas_entity.h
be_aas_file.h
be_aas_funcs.h
be_aas_main.h
be_aas_move.h
be_aas_optimize.h
be_aas_reach.h
be_aas_route.h
be_aas_routealt.h
be_aas_sample.h
be_ai_weight.h
be_interface.h
../game/bg_public.h
../qcommon/cm_public.h
../game/g_public.h
l_crc.h
l_libvar.h
l_log.h
l_memory.h
l_precomp.h
l_script.h
l_struct.h
l_utils.h
../game/q_shared.h
../qcommon/qcommon.h
../qcommon/qfiles.h
../server/server.h
../game/surfaceflags.h)
ADD_DEFINITIONS(-DBOTLIB)
ADD_LIBRARY(BotLib ${SRCS})
35 changes: 35 additions & 0 deletions code/cgame/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
SET(SRCS
#../game/bg_lib.c
../game/bg_misc.c
../game/bg_pmove.c
../game/bg_slidemove.c
cg_consolecmds.c
cg_draw.c
cg_drawtools.c
cg_effects.c
cg_ents.c
cg_event.c
cg_info.c
cg_localents.c
cg_main.c
cg_marks.c
#cg_newDraw.c
cg_players.c
cg_playerstate.c
cg_predict.c
cg_scoreboard.c
cg_servercmds.c
cg_snapshot.c
cg_syscalls.c
cg_view.c
cg_weapons.c
../game/q_math.c
../game/q_shared.c
../ui/ui_shared.c
../game/bg_public.h
cg_local.h
cg_public.h
../game/q_shared.h
../game/surfaceflags.h
cgame.def)
ADD_LIBRARY(cgamex86 SHARED ${SRCS})
65 changes: 65 additions & 0 deletions code/game/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
SET(SRCS
ai_chat.c
ai_cmd.c
ai_dmnet.c
ai_dmq3.c
ai_main.c
ai_team.c
ai_vcmd.c
#bg_lib.c
bg_misc.c
bg_pmove.c
bg_slidemove.c
g_active.c
g_arenas.c
g_bot.c
g_client.c
g_cmds.c
g_combat.c
g_items.c
g_main.c
g_mem.c
g_misc.c
g_missile.c
g_mover.c
g_session.c
g_spawn.c
g_svcmds.c
g_syscalls.c
g_target.c
g_team.c
g_trigger.c
g_utils.c
g_weapon.c
game.def
q_math.c
q_shared.c
ai_chat.h
ai_cmd.h
ai_dmnet.h
ai_dmq3.h
ai_main.h
ai_team.h
ai_vcmd.h
be_aas.h
be_ai_char.h
be_ai_chat.h
be_ai_gen.h
be_ai_goal.h
be_ai_move.h
be_ai_weap.h
be_ea.h
bg_local.h
bg_public.h
botlib.h
chars.h
g_local.h
g_public.h
g_team.h
inv.h
match.h
q_shared.h
surfaceflags.h
syn.h)
ADD_DEFINITIONS(-DQAGAME)
ADD_LIBRARY(qagamex86 SHARED ${SRCS})
51 changes: 51 additions & 0 deletions code/q3_ui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
SET(SRCS
../game/bg_misc.c
../game/q_math.c
../game/q_shared.c
ui.def
ui_addbots.c
ui_atoms.c
ui_cdkey.c
ui_cinematics.c
ui_confirm.c
ui_connect.c
ui_controls2.c
ui_credits.c
ui_demo2.c
ui_display.c
ui_gameinfo.c
ui_ingame.c
ui_loadconfig.c
ui_main.c
ui_menu.c
ui_mfield.c
ui_mods.c
ui_network.c
ui_options.c
ui_playermodel.c
ui_players.c
ui_playersettings.c
ui_preferences.c
ui_qmenu.c
ui_removebots.c
ui_saveconfig.c
ui_serverinfo.c
ui_servers2.c
ui_setup.c
ui_sound.c
ui_sparena.c
ui_specifyserver.c
ui_splevel.c
ui_sppostgame.c
ui_spreset.c
ui_spskill.c
ui_startserver.c
../ui/ui_syscalls.c
ui_team.c
ui_teamorders.c
ui_video.c
keycodes.h
../game/q_shared.h
ui_local.h)
#ui_public.h)
ADD_LIBRARY(uix86 SHARED ${SRCS})
Loading

0 comments on commit ccfd524

Please sign in to comment.