]> git.xonotic.org Git - xonotic/netradiant.git/blob - CMakeLists.txt
Merge branch 'TimePath/cmake' into Melanosuchus/cmake
[xonotic/netradiant.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
2
3 project(NetRadiant C CXX)
4 set(CMAKE_CXX_STANDARD 11)
5 set(CMAKE_CXX_STANDARD_REQUIRED ON)
6 # For some reason the above flags don't really work...
7 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR CMAKE_COMPILER_IS_GNUCXX)
8     include(CheckCXXCompilerFlag)
9     check_cxx_compiler_flag(--std=c++${CMAKE_CXX_STANDARD} STD_CXX)
10     if(STD_CXX)
11         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++${CMAKE_CXX_STANDARD}")
12     else()
13         message(SEND_ERROR "Requires C++${CMAKE_CXX_STANDARD} or better")
14     endif()
15 else()
16     message(WARNING "Unrecognized compiler: ${CMAKE_CXX_COMPILER_ID}, make sure it supports C++${CMAKE_CXX_STANDARD}")
17 endif()
18
19 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
20
21 find_package(LibXml2 REQUIRED)
22 include_directories(${LIBXML2_INCLUDE_DIR})
23
24 find_package(GTK2 REQUIRED)
25 include_directories(${GTK2_INCLUDE_DIRS} ${GTK2_GDK_INCLUDE_DIR} ${GTK2_GLIB_INCLUDE_DIR})
26
27 find_package(GtkGLExt REQUIRED)
28 include_directories(${GTKGL_INCLUDE_DIRS})
29
30 find_package(OpenGL REQUIRED)
31
32 add_definitions(
33     -D_DEBUG=1
34     -DRADIANT_VERSION="1.5.0n"
35     -DRADIANT_MAJOR_VERSION="5"
36     -DRADIANT_MINOR_VERSION="0"
37     -DRADIANT_ABOUTMSG="Custom build"
38     -DRADIANT_EXECUTABLE="x86_64"
39 )
40 if(NOT WIN32)
41     add_definitions(
42         -DPOSIX=1
43         -DXWINDOWS=1
44     )
45 else()
46     add_definitions(
47         -D_WIN32
48     )
49 endif()
50
51 set(BKGRND2DLIST
52     contrib/bkgrnd2d/bkgrnd2d.cpp
53     contrib/bkgrnd2d/bkgrnd2d.h
54     contrib/bkgrnd2d/dialog.cpp
55     contrib/bkgrnd2d/dialog.h
56     contrib/bkgrnd2d/plugin.cpp
57     contrib/bkgrnd2d/plugin.h
58 )
59
60 set(BOBTOOLZLIST
61     contrib/bobtoolz/dialogs/AboutDialog.cpp
62     contrib/bobtoolz/dialogs/AboutDialog.h
63     contrib/bobtoolz/dialogs/AutoCaulkDialog.cpp
64     contrib/bobtoolz/dialogs/AutoCaulkDialog.h
65     contrib/bobtoolz/dialogs/AutoCaulkStartDialog.cpp
66     contrib/bobtoolz/dialogs/AutoCaulkStartDialog.h
67     contrib/bobtoolz/dialogs/BrushCheckDialog.h
68     contrib/bobtoolz/dialogs/DoorDialog.cpp
69     contrib/bobtoolz/dialogs/DoorDialog.h
70     contrib/bobtoolz/dialogs/IntersectDialog.cpp
71     contrib/bobtoolz/dialogs/IntersectDialog.h
72     contrib/bobtoolz/dialogs/IntersectInfoDialog.cpp
73     contrib/bobtoolz/dialogs/IntersectInfoDialog.h
74     contrib/bobtoolz/dialogs/PolygonDialog.cpp
75     contrib/bobtoolz/dialogs/PolygonDialog.h
76     contrib/bobtoolz/dialogs/StairDialog.cpp
77     contrib/bobtoolz/dialogs/StairDialog.h
78     contrib/bobtoolz/dialogs/TextureResetDialog.cpp
79     contrib/bobtoolz/dialogs/TextureResetDialog.h
80     contrib/bobtoolz/dialogs/brushcheckdialog.cpp
81     contrib/bobtoolz/dialogs/dialogs-gtk.cpp
82     contrib/bobtoolz/dialogs/dialogs-gtk.h
83     contrib/bobtoolz/dialogs/pathplotterdialog.cpp
84     contrib/bobtoolz/dialogs/pathplotterdialog.h
85     contrib/bobtoolz/CPortals.h
86     contrib/bobtoolz/DBobView.cpp
87     contrib/bobtoolz/DBobView.h
88     contrib/bobtoolz/DBrush.cpp
89     contrib/bobtoolz/DBrush.h
90     contrib/bobtoolz/DEPair.cpp
91     contrib/bobtoolz/DEPair.h
92     contrib/bobtoolz/DEntity.cpp
93     contrib/bobtoolz/DEntity.h
94     contrib/bobtoolz/DMap.cpp
95     contrib/bobtoolz/DMap.h
96     contrib/bobtoolz/DPatch.cpp
97     contrib/bobtoolz/DPatch.h
98     contrib/bobtoolz/DPlane.cpp
99     contrib/bobtoolz/DPlane.h
100     contrib/bobtoolz/DPoint.cpp
101     contrib/bobtoolz/DPoint.h
102     contrib/bobtoolz/DShape.cpp
103     contrib/bobtoolz/DShape.h
104     contrib/bobtoolz/DTrainDrawer.cpp
105     contrib/bobtoolz/DTrainDrawer.h
106     contrib/bobtoolz/DTreePlanter.cpp
107     contrib/bobtoolz/DTreePlanter.h
108     contrib/bobtoolz/DVisDrawer.cpp
109     contrib/bobtoolz/DVisDrawer.h
110     contrib/bobtoolz/DWinding.cpp
111     contrib/bobtoolz/DWinding.h
112     contrib/bobtoolz/ScriptParser.cpp
113     contrib/bobtoolz/ScriptParser.h
114     contrib/bobtoolz/StdAfx.cpp
115     contrib/bobtoolz/StdAfx.h
116     contrib/bobtoolz/bobToolz-GTK.cpp
117     contrib/bobtoolz/bobToolz.h
118     contrib/bobtoolz/bsploader.cpp
119     contrib/bobtoolz/bsploader.h
120     contrib/bobtoolz/cportals.cpp
121     contrib/bobtoolz/ctfToolz-GTK.cpp
122     contrib/bobtoolz/ctfresource_gtk.h
123     contrib/bobtoolz/funchandlers-GTK.cpp
124     contrib/bobtoolz/funchandlers-ctf-GTK.cpp
125     contrib/bobtoolz/funchandlers.cpp
126     contrib/bobtoolz/funchandlers.h
127     contrib/bobtoolz/lists.cpp
128     contrib/bobtoolz/lists.h
129     contrib/bobtoolz/misc.cpp
130     contrib/bobtoolz/misc.h
131     contrib/bobtoolz/resource-gtk.h
132     contrib/bobtoolz/resource.h
133     contrib/bobtoolz/shapes.cpp
134     contrib/bobtoolz/shapes.h
135     contrib/bobtoolz/visfind.cpp
136     contrib/bobtoolz/visfind.h
137 )
138
139 set(BRUSHEXPORTLIST
140     contrib/brushexport/callbacks.cpp
141     contrib/brushexport/callbacks.h
142     contrib/brushexport/export.cpp
143     contrib/brushexport/export.h
144     contrib/brushexport/interface.cpp
145     contrib/brushexport/plugin.cpp
146     contrib/brushexport/plugin.h
147     contrib/brushexport/support.cpp
148     contrib/brushexport/support.h
149 )
150
151 set(CAMERALIST
152     contrib/camera/camera.cpp
153     contrib/camera/camera.h
154     contrib/camera/dialogs.cpp
155     contrib/camera/dialogs.h
156     contrib/camera/dialogs_common.cpp
157     contrib/camera/funchandlers.cpp
158     contrib/camera/funchandlers.h
159     contrib/camera/listener.cpp
160     contrib/camera/listener.h
161     contrib/camera/misc.cpp
162     contrib/camera/misc.h
163     contrib/camera/renderer.cpp
164     contrib/camera/renderer.h
165 )
166
167 set(GTKGENSURFLIST
168     contrib/gtkgensurf/bitmap.cpp
169     contrib/gtkgensurf/dec.cpp
170     contrib/gtkgensurf/face.cpp
171     contrib/gtkgensurf/font.cpp
172     contrib/gtkgensurf/gendlgs.cpp
173     contrib/gtkgensurf/gendlgs.h
174     contrib/gtkgensurf/genmap.cpp
175     contrib/gtkgensurf/gensurf.cpp
176     contrib/gtkgensurf/gensurf.h
177     contrib/gtkgensurf/heretic.cpp
178     contrib/gtkgensurf/plugin.cpp
179     contrib/gtkgensurf/triangle.c
180     contrib/gtkgensurf/triangle.h
181     contrib/gtkgensurf/view.cpp
182 )
183
184 set(HYDRATOOLZLIST
185     contrib/hydratoolz/plugin.cpp
186     contrib/hydratoolz/plugin.h
187 )
188
189 set(PRTVIEWLIST
190     contrib/prtview/AboutDialog.cpp
191     contrib/prtview/AboutDialog.h
192     contrib/prtview/ConfigDialog.cpp
193     contrib/prtview/ConfigDialog.h
194     contrib/prtview/LoadPortalFileDialog.cpp
195     contrib/prtview/LoadPortalFileDialog.h
196     contrib/prtview/portals.cpp
197     contrib/prtview/portals.h
198     contrib/prtview/prtview.cpp
199     contrib/prtview/prtview.h
200 )
201
202 set(SHADERPLUGLIST
203     contrib/shaderplug/shaderplug.cpp
204     contrib/shaderplug/shaderplug.h
205 )
206
207 set(SUNPLUGLIST
208     contrib/sunplug/sunplug.cpp
209     contrib/sunplug/sunplug.h
210 )
211
212 set(UFOAIPLUGLIST
213     contrib/ufoaiplug/ufoai.cpp
214     contrib/ufoaiplug/ufoai.h
215     contrib/ufoaiplug/ufoai_filters.cpp
216     contrib/ufoaiplug/ufoai_filters.h
217     contrib/ufoaiplug/ufoai_gtk.cpp
218     contrib/ufoaiplug/ufoai_gtk.h
219     contrib/ufoaiplug/ufoai_level.cpp
220     contrib/ufoaiplug/ufoai_level.h
221 )
222
223 set(INCLUDELIST
224     include/aboutmsg.h
225     include/cullable.cpp
226     include/cullable.h
227     include/editable.cpp
228     include/editable.h
229     include/iarchive.cpp
230     include/iarchive.h
231     include/ibrush.cpp
232     include/ibrush.h
233     include/icamera.cpp
234     include/icamera.h
235     include/idatastream.cpp
236     include/idatastream.h
237     include/ieclass.cpp
238     include/ieclass.h
239     include/ientity.cpp
240     include/ientity.h
241     include/ifilesystem.cpp
242     include/ifilesystem.h
243     include/ifiletypes.cpp
244     include/ifiletypes.h
245     include/ifilter.cpp
246     include/ifilter.h
247     include/igl.cpp
248     include/igl.h
249     include/iglrender.cpp
250     include/iglrender.h
251     include/igtkgl.cpp
252     include/igtkgl.h
253     include/iimage.cpp
254     include/iimage.h
255     include/imap.cpp
256     include/imap.h
257     include/imodel.cpp
258     include/imodel.h
259     include/ipatch.cpp
260     include/ipatch.h
261     include/iplugin.cpp
262     include/iplugin.h
263     include/ireference.cpp
264     include/ireference.h
265     include/irender.cpp
266     include/irender.h
267     include/iscenegraph.cpp
268     include/iscenegraph.h
269     include/iscriplib.cpp
270     include/iscriplib.h
271     include/iselection.cpp
272     include/iselection.h
273     include/ishaders.cpp
274     include/ishaders.h
275     include/itexdef.cpp
276     include/itexdef.h
277     include/itextstream.cpp
278     include/itextstream.h
279     include/itextures.cpp
280     include/itextures.h
281     include/itoolbar.cpp
282     include/itoolbar.h
283     include/iundo.cpp
284     include/iundo.h
285     include/mapfile.cpp
286     include/mapfile.h
287     include/modelskin.cpp
288     include/modelskin.h
289     include/moduleobserver.cpp
290     include/moduleobserver.h
291     include/modulesystem.cpp
292     include/modulesystem.h
293     include/nameable.cpp
294     include/nameable.h
295     include/namespace.cpp
296     include/namespace.h
297     include/preferencesystem.cpp
298     include/preferencesystem.h
299     include/qerplugin.cpp
300     include/qerplugin.h
301     include/renderable.cpp
302     include/renderable.h
303     include/selectable.cpp
304     include/selectable.h
305     include/stream_version.h
306     include/version.h
307     include/warnings.h
308     include/windowobserver.cpp
309     include/windowobserver.h
310 )
311 include_directories(include)
312
313 add_library(cmdlib
314     libs/cmdlib/cmdlib.cpp
315 )
316
317 add_library(container
318     libs/container/array.cpp
319     libs/container/array.h
320     libs/container/cache.cpp
321     libs/container/cache.h
322     libs/container/container.cpp
323     libs/container/container.h
324     libs/container/hashfunc.cpp
325     libs/container/hashfunc.h
326     libs/container/hashtable.cpp
327     libs/container/hashtable.h
328     libs/container/stack.cpp
329     libs/container/stack.h
330 )
331
332 add_library(ddslib
333     libs/ddslib/ddslib.c
334 )
335
336 add_library(debugging
337     libs/debugging/debugging.cpp
338     libs/debugging/debugging.h
339 )
340
341 add_library(generic
342     libs/generic/arrayrange.cpp
343     libs/generic/arrayrange.h
344     libs/generic/bitfield.cpp
345     libs/generic/bitfield.h
346     libs/generic/callback.cpp
347     libs/generic/callback.h
348     libs/generic/callbackfwd.cpp
349     libs/generic/callbackfwd.h
350     libs/generic/constant.cpp
351     libs/generic/constant.h
352     libs/generic/enumeration.cpp
353     libs/generic/enumeration.h
354     libs/generic/functional.cpp
355     libs/generic/functional.h
356     libs/generic/object.cpp
357     libs/generic/object.h
358     libs/generic/reference.cpp
359     libs/generic/reference.h
360     libs/generic/referencecounted.cpp
361     libs/generic/referencecounted.h
362     libs/generic/static.cpp
363     libs/generic/static.h
364     libs/generic/vector.cpp
365     libs/generic/vector.h
366 )
367
368 add_library(gtkutil
369     libs/gtkutil/accelerator.cpp
370     libs/gtkutil/accelerator.h
371     libs/gtkutil/button.cpp
372     libs/gtkutil/button.h
373     libs/gtkutil/clipboard.cpp
374     libs/gtkutil/clipboard.h
375     libs/gtkutil/closure.cpp
376     libs/gtkutil/closure.h
377     libs/gtkutil/container.cpp
378     libs/gtkutil/container.h
379     libs/gtkutil/cursor.cpp
380     libs/gtkutil/cursor.h
381     libs/gtkutil/dialog.cpp
382     libs/gtkutil/dialog.h
383     libs/gtkutil/entry.cpp
384     libs/gtkutil/entry.h
385     libs/gtkutil/filechooser.cpp
386     libs/gtkutil/filechooser.h
387     libs/gtkutil/frame.cpp
388     libs/gtkutil/frame.h
389     libs/gtkutil/glfont.cpp
390     libs/gtkutil/glfont.h
391     libs/gtkutil/glwidget.cpp
392     libs/gtkutil/glwidget.h
393     libs/gtkutil/idledraw.cpp
394     libs/gtkutil/idledraw.h
395     libs/gtkutil/image.cpp
396     libs/gtkutil/image.h
397     libs/gtkutil/menu.cpp
398     libs/gtkutil/menu.h
399     libs/gtkutil/messagebox.cpp
400     libs/gtkutil/messagebox.h
401     libs/gtkutil/nonmodal.cpp
402     libs/gtkutil/nonmodal.h
403     libs/gtkutil/paned.cpp
404     libs/gtkutil/paned.h
405     libs/gtkutil/pointer.cpp
406     libs/gtkutil/pointer.h
407     libs/gtkutil/toolbar.cpp
408     libs/gtkutil/toolbar.h
409     libs/gtkutil/widget.cpp
410     libs/gtkutil/widget.h
411     libs/gtkutil/window.cpp
412     libs/gtkutil/window.h
413     libs/gtkutil/xorrectangle.cpp
414     libs/gtkutil/xorrectangle.h
415 )
416 target_link_libraries(gtkutil ${GTK2_PANGOFT2_LIBRARY})
417
418 set(L_NETLIST
419     libs/l_net/l_net.c
420     libs/l_net/l_net.h
421 )
422 if(WIN32)
423     set(L_NETLIST ${L_NETLIST} libs/l_net/l_net_wins.c libs/l_net/l_net_wins.h)
424 else()
425     set(L_NETLIST ${L_NETLIST} libs/l_net/l_net_berkley.c)
426 endif()
427 add_library(l_net ${L_NETLIST})
428 if(WIN32)
429     target_link_libraries(l_net ws2_32)
430 endif()
431
432 #add_library(math
433 #    libs/math/aabb.cpp
434 #    libs/math/aabb.h
435 #    libs/math/curve.cpp
436 #    libs/math/curve.h
437 #    libs/math/expression.cpp
438 #    libs/math/expression.h
439 #    libs/math/frustum.cpp
440 #    libs/math/frustum.h
441 #    libs/math/line.cpp
442 #    libs/math/line.h
443 #    libs/math/matrix.cpp
444 #    libs/math/matrix.h
445 #    libs/math/pi.cpp
446 #    libs/math/pi.h
447 #    libs/math/plane.cpp
448 #    libs/math/plane.h
449 #    libs/math/quaternion.cpp
450 #    libs/math/quaternion.h
451 #    libs/math/vector.cpp
452 #    libs/math/vector.h
453 #)
454
455 add_library(mathlib
456     libs/mathlib/bbox.c
457     libs/mathlib/line.c
458     libs/mathlib/m4x4.c
459     libs/mathlib/mathlib.c
460     libs/mathlib/ray.c
461 )
462
463 add_library(md5lib
464     libs/md5lib/md5lib.c
465 )
466
467 add_library(memory
468     libs/memory/allocator.cpp
469     libs/memory/allocator.h
470 )
471 add_library(modulesystem
472     libs/modulesystem/moduleregistry.cpp
473     libs/modulesystem/moduleregistry.h
474     libs/modulesystem/modulesmap.cpp
475     libs/modulesystem/modulesmap.h
476     libs/modulesystem/singletonmodule.cpp
477     libs/modulesystem/singletonmodule.h
478 )
479
480 add_library(os
481     libs/os/dir.cpp
482     libs/os/dir.h
483     libs/os/file.cpp
484     libs/os/file.h
485     libs/os/path.cpp
486     libs/os/path.h
487 )
488
489 add_library(picomodel
490     libs/picomodel/lwo/clip.c
491     libs/picomodel/lwo/envelope.c
492     libs/picomodel/lwo/list.c
493     libs/picomodel/lwo/lwio.c
494     libs/picomodel/lwo/lwo2.c
495     libs/picomodel/lwo/lwo2.h
496     libs/picomodel/lwo/lwob.c
497     libs/picomodel/lwo/pntspols.c
498     libs/picomodel/lwo/surface.c
499     libs/picomodel/lwo/vecmath.c
500     libs/picomodel/lwo/vmap.c
501     libs/picomodel/picointernal.c
502     libs/picomodel/picointernal.h
503     libs/picomodel/picomodel.c
504     libs/picomodel/picomodules.c
505     libs/picomodel/pm_3ds.c
506     libs/picomodel/pm_ase.c
507     libs/picomodel/pm_fm.c
508     libs/picomodel/pm_fm.h
509     libs/picomodel/pm_lwo.c
510     libs/picomodel/pm_md2.c
511     libs/picomodel/pm_md3.c
512     libs/picomodel/pm_mdc.c
513     libs/picomodel/pm_ms3d.c
514     libs/picomodel/pm_obj.c
515     libs/picomodel/pm_terrain.c
516 )
517
518 add_library(profile
519     libs/profile/file.cpp
520     libs/profile/file.h
521     libs/profile/profile.cpp
522     libs/profile/profile.h
523 )
524
525 add_library(script
526     libs/script/scripttokeniser.cpp
527     libs/script/scripttokeniser.h
528     libs/script/scripttokenwriter.cpp
529     libs/script/scripttokenwriter.h
530 )
531
532 add_library(signal
533     libs/signal/isignal.cpp
534     libs/signal/isignal.h
535     libs/signal/signal.cpp
536     libs/signal/signal.h
537     libs/signal/signalfwd.cpp
538     libs/signal/signalfwd.h
539 )
540
541 add_library(splines
542     libs/splines/math_angles.cpp
543     libs/splines/math_angles.h
544     libs/splines/math_matrix.cpp
545     libs/splines/math_matrix.h
546     libs/splines/math_quaternion.cpp
547     libs/splines/math_quaternion.h
548     libs/splines/math_vector.cpp
549     libs/splines/math_vector.h
550     libs/splines/q_parse.cpp
551     libs/splines/q_shared.cpp
552     libs/splines/q_shared.h
553     libs/splines/splines.cpp
554     libs/splines/splines.h
555     libs/splines/util_list.h
556     libs/splines/util_str.cpp
557     libs/splines/util_str.h
558 )
559
560 add_library(stream
561     libs/stream/filestream.cpp
562     libs/stream/filestream.h
563     libs/stream/memstream.cpp
564     libs/stream/memstream.h
565     libs/stream/stringstream.cpp
566     libs/stream/stringstream.h
567     libs/stream/textfilestream.cpp
568     libs/stream/textfilestream.h
569     libs/stream/textstream.cpp
570     libs/stream/textstream.h
571 )
572
573 add_library(string
574     libs/string/pooledstring.cpp
575     libs/string/pooledstring.h
576     libs/string/string.h
577 )
578
579 add_library(xml
580     libs/xml/ixml.cpp
581     libs/xml/ixml.h
582     libs/xml/xmlelement.cpp
583     libs/xml/xmlelement.h
584     libs/xml/xmlparser.cpp
585     libs/xml/xmlparser.h
586     libs/xml/xmltextags.cpp
587     libs/xml/xmltextags.h
588     libs/xml/xmlwriter.cpp
589     libs/xml/xmlwriter.h
590 )
591 target_link_libraries(xml ${LIBXML2_LIBRARIES})
592
593 add_library(libs
594     libs/archivelib.cpp
595     libs/archivelib.h
596     libs/bytebool.cpp
597     libs/bytebool.h
598     libs/bytestreamutils.cpp
599     libs/character.cpp
600     libs/character.h
601     libs/cmdlib.h
602     libs/convert.cpp
603     libs/convert.h
604     libs/ddslib.h
605     libs/dragplanes.cpp
606     libs/dragplanes.h
607     libs/eclasslib.cpp
608     libs/eclasslib.h
609     libs/entitylib.cpp
610     libs/entitylib.h
611     libs/entityxml.cpp
612     libs/entityxml.h
613     libs/filematch.c
614     libs/filematch.h
615     libs/fs_filesystem.cpp
616     libs/fs_filesystem.h
617     libs/fs_path.cpp
618     libs/fs_path.h
619     libs/imagelib.cpp
620     libs/imagelib.h
621     libs/instancelib.cpp
622     libs/instancelib.h
623     libs/maplib.cpp
624     libs/maplib.h
625     libs/mathlib.h
626     libs/md5lib.h
627     libs/moduleobservers.cpp
628     libs/moduleobservers.h
629     libs/picomodel.h
630     libs/pivot.cpp
631     libs/pivot.h
632     libs/render.cpp
633     libs/render.h
634     libs/scenelib.cpp
635     libs/scenelib.h
636     libs/selectionlib.cpp
637     libs/selectionlib.h
638     libs/shaderlib.cpp
639     libs/shaderlib.h
640     libs/str.cpp
641     libs/str.h
642     libs/stringio.cpp
643     libs/stringio.h
644     libs/texturelib.cpp
645     libs/texturelib.h
646     libs/transformlib.cpp
647     libs/transformlib.h
648     libs/traverselib.cpp
649     libs/traverselib.h
650     libs/typesystem.cpp
651     libs/typesystem.h
652     libs/undolib.cpp
653     libs/undolib.h
654     libs/uniquenames.cpp
655     libs/uniquenames.h
656     libs/versionlib.cpp
657     libs/versionlib.h
658     libs/bytestreamutils.h
659     libs/etclib.c
660     libs/etclib.h
661 )
662
663 include_directories(libs)
664
665 set(ARCHIVEPAKLIST
666     plugins/archivepak/archive.cpp
667     plugins/archivepak/archive.h
668     plugins/archivepak/pak.cpp
669     plugins/archivepak/pak.h
670     plugins/archivepak/plugin.cpp
671     plugins/archivepak/plugin.h
672 )
673
674 set(ARCHIVEWADLIST
675     plugins/archivewad/archive.cpp
676     plugins/archivewad/archive.h
677     plugins/archivewad/plugin.cpp
678     plugins/archivewad/plugin.h
679     plugins/archivewad/wad.cpp
680     plugins/archivewad/wad.h
681 )
682
683 set(ARCHIVEZIPLIST
684     plugins/archivezip/archive.cpp
685     plugins/archivezip/archive.h
686     plugins/archivezip/pkzip.cpp
687     plugins/archivezip/pkzip.h
688     plugins/archivezip/plugin.cpp
689     plugins/archivezip/plugin.h
690     plugins/archivezip/zlibstream.cpp
691     plugins/archivezip/zlibstream.h
692 )
693
694 set(ENTITYLIST
695     plugins/entity/angle.cpp
696     plugins/entity/angle.h
697     plugins/entity/angles.cpp
698     plugins/entity/angles.h
699     plugins/entity/colour.cpp
700     plugins/entity/colour.h
701     plugins/entity/curve.cpp
702     plugins/entity/curve.h
703     plugins/entity/doom3group.cpp
704     plugins/entity/doom3group.h
705     plugins/entity/eclassmodel.cpp
706     plugins/entity/eclassmodel.h
707     plugins/entity/entity.cpp
708     plugins/entity/entity.h
709     plugins/entity/filters.cpp
710     plugins/entity/filters.h
711     plugins/entity/generic.cpp
712     plugins/entity/generic.h
713     plugins/entity/group.cpp
714     plugins/entity/group.h
715     plugins/entity/keyobservers.cpp
716     plugins/entity/keyobservers.h
717     plugins/entity/light.cpp
718     plugins/entity/light.h
719     plugins/entity/miscmodel.cpp
720     plugins/entity/miscmodel.h
721     plugins/entity/model.cpp
722     plugins/entity/model.h
723     plugins/entity/modelskinkey.cpp
724     plugins/entity/modelskinkey.h
725     plugins/entity/namedentity.cpp
726     plugins/entity/namedentity.h
727     plugins/entity/namekeys.cpp
728     plugins/entity/namekeys.h
729     plugins/entity/origin.cpp
730     plugins/entity/origin.h
731     plugins/entity/plugin.cpp
732     plugins/entity/plugin.h
733     plugins/entity/rotation.cpp
734     plugins/entity/rotation.h
735     plugins/entity/scale.cpp
736     plugins/entity/scale.h
737     plugins/entity/skincache.cpp
738     plugins/entity/skincache.h
739     plugins/entity/targetable.cpp
740     plugins/entity/targetable.h
741 )
742
743 set(IMAGELIST
744     plugins/image/bmp.cpp
745     plugins/image/bmp.h
746     plugins/image/dds.cpp
747     plugins/image/dds.h
748     plugins/image/image.h
749     plugins/image/jpeg.cpp
750     plugins/image/jpeg.h
751     plugins/image/pcx.cpp
752     plugins/image/pcx.h
753     plugins/image/tga.cpp
754     plugins/image/tga.h
755     plugins/image/image.cpp
756     plugins/image/ktx.cpp
757     plugins/image/ktx.h
758 )
759
760 set(IMAGEHLLIST
761     plugins/imagehl/hlw.cpp
762     plugins/imagehl/hlw.h
763     plugins/imagehl/imagehl.cpp
764     plugins/imagehl/imagehl.h
765     plugins/imagehl/mip.cpp
766     plugins/imagehl/mip.h
767     plugins/imagehl/sprite.cpp
768     plugins/imagehl/sprite.h
769 )
770
771 set(IMAGEPNGLIST
772     plugins/imagepng/plugin.cpp
773     plugins/imagepng/plugin.h
774 )
775
776 set(IMAGEQ2LIST
777     plugins/imageq2/imageq2.cpp
778     plugins/imageq2/imageq2.h
779     plugins/imageq2/wal.cpp
780     plugins/imageq2/wal.h
781     plugins/imageq2/wal32.cpp
782     plugins/imageq2/wal32.h
783 )
784
785 set(MAPQ3LIST
786     plugins/mapq3/parse.cpp
787     plugins/mapq3/parse.h
788     plugins/mapq3/plugin.cpp
789     plugins/mapq3/plugin.h
790     plugins/mapq3/write.cpp
791     plugins/mapq3/write.h
792 )
793
794 set(MAPXMLLIST
795     plugins/mapxml/plugin.cpp
796     plugins/mapxml/plugin.h
797     plugins/mapxml/xmlparse.cpp
798     plugins/mapxml/xmlparse.h
799     plugins/mapxml/xmlwrite.cpp
800     plugins/mapxml/xmlwrite.h
801 )
802
803 set(MD3MODELLIST
804     plugins/md3model/ident.h
805     plugins/md3model/md2.cpp
806     plugins/md3model/md2.h
807     plugins/md3model/md3.cpp
808     plugins/md3model/md3.h
809     plugins/md3model/md3normals.cpp
810     plugins/md3model/md3normals.h
811     plugins/md3model/md5.cpp
812     plugins/md3model/md5.h
813     plugins/md3model/mdc.cpp
814     plugins/md3model/mdc.h
815     plugins/md3model/mdl.cpp
816     plugins/md3model/mdl.h
817     plugins/md3model/mdlformat.cpp
818     plugins/md3model/mdlformat.h
819     plugins/md3model/mdlimage.cpp
820     plugins/md3model/mdlimage.h
821     plugins/md3model/mdlnormals.cpp
822     plugins/md3model/mdlnormals.h
823     plugins/md3model/model.cpp
824     plugins/md3model/model.h
825     plugins/md3model/plugin.cpp
826     plugins/md3model/plugin.h
827 )
828
829 set(MODELLIST
830     plugins/model/model.cpp
831     plugins/model/model.h
832     plugins/model/plugin.cpp
833     plugins/model/plugin.h
834 )
835
836 set(SAMPLELIST
837     plugins/sample/sample.cpp
838     plugins/sample/sample.h
839 )
840
841 set(SHADERSLIST
842     plugins/shaders/plugin.cpp
843     plugins/shaders/plugin.h
844     plugins/shaders/shaders.cpp
845     plugins/shaders/shaders.h
846 )
847
848 set(SPRITEMODELLIST
849     plugins/spritemodel/plugin.cpp
850     plugins/spritemodel/plugin.h
851     plugins/spritemodel/spritemodel.cpp
852     plugins/spritemodel/spritemodel.h
853 )
854
855 set(TEXTOOLLIST
856     plugins/textool/2DView.cpp
857     plugins/textool/2DView.h
858     plugins/textool/ControlPointsManager.cpp
859     plugins/textool/ControlPointsManager.h
860     plugins/textool/StdAfx.cpp
861     plugins/textool/StdAfx.h
862     plugins/textool/TexTool.cpp
863     plugins/textool/resource.h
864 )
865
866 set(VFSPK3LIST
867     plugins/vfspk3/archive.cpp
868     plugins/vfspk3/archive.h
869     plugins/vfspk3/vfs.cpp
870     plugins/vfspk3/vfs.h
871     plugins/vfspk3/vfspk3.cpp
872     plugins/vfspk3/vfspk3.h
873 )
874
875 set(RADIANTLIST
876     radiant/autosave.cpp
877     radiant/autosave.h
878     radiant/brush.cpp
879     radiant/brush.h
880     radiant/brush_primit.cpp
881     radiant/brush_primit.h
882     radiant/brushmanip.cpp
883     radiant/brushmanip.h
884     radiant/brushmodule.cpp
885     radiant/brushmodule.h
886     radiant/brushnode.cpp
887     radiant/brushnode.h
888     radiant/brushtokens.cpp
889     radiant/brushtokens.h
890     radiant/brushxml.cpp
891     radiant/brushxml.h
892     radiant/build.cpp
893     radiant/build.h
894     radiant/camwindow.cpp
895     radiant/camwindow.h
896     radiant/clippertool.cpp
897     radiant/clippertool.h
898     radiant/commands.cpp
899     radiant/commands.h
900     radiant/console.cpp
901     radiant/console.h
902     radiant/csg.cpp
903     radiant/csg.h
904     radiant/dialog.cpp
905     radiant/dialog.h
906     radiant/eclass.cpp
907     radiant/eclass.h
908     radiant/eclass_def.cpp
909     radiant/eclass_def.h
910     radiant/eclass_doom3.cpp
911     radiant/eclass_doom3.h
912     radiant/eclass_fgd.cpp
913     radiant/eclass_fgd.h
914     radiant/eclass_xml.cpp
915     radiant/eclass_xml.h
916     radiant/entity.cpp
917     radiant/entity.h
918     radiant/entityinspector.cpp
919     radiant/entityinspector.h
920     radiant/entitylist.cpp
921     radiant/entitylist.h
922     radiant/environment.cpp
923     radiant/environment.h
924     radiant/error.cpp
925     radiant/error.h
926     radiant/feedback.cpp
927     radiant/feedback.h
928     radiant/filetypes.cpp
929     radiant/filetypes.h
930     radiant/filters.cpp
931     radiant/filters.h
932     radiant/findtexturedialog.cpp
933     radiant/findtexturedialog.h
934     radiant/glwidget.cpp
935     radiant/glwidget.h
936     radiant/grid.cpp
937     radiant/grid.h
938     radiant/groupdialog.cpp
939     radiant/groupdialog.h
940     radiant/gtkdlgs.cpp
941     radiant/gtkdlgs.h
942     radiant/gtkmisc.cpp
943     radiant/gtkmisc.h
944     radiant/help.cpp
945     radiant/help.h
946     radiant/image.cpp
947     radiant/image.h
948     radiant/main.cpp
949     radiant/main.h
950     radiant/mainframe.cpp
951     radiant/mainframe.h
952     radiant/map.cpp
953     radiant/map.h
954     radiant/mru.cpp
955     radiant/mru.h
956     radiant/multimon.cpp
957     radiant/multimon.h
958     radiant/nullmodel.cpp
959     radiant/nullmodel.h
960     radiant/parse.cpp
961     radiant/parse.h
962     radiant/patch.cpp
963     radiant/patch.h
964     radiant/patchdialog.cpp
965     radiant/patchdialog.h
966     radiant/patchmanip.cpp
967     radiant/patchmanip.h
968     radiant/patchmodule.cpp
969     radiant/patchmodule.h
970     radiant/plugin.cpp
971     radiant/plugin.h
972     radiant/pluginapi.cpp
973     radiant/pluginapi.h
974     radiant/pluginmanager.cpp
975     radiant/pluginmanager.h
976     radiant/pluginmenu.cpp
977     radiant/pluginmenu.h
978     radiant/plugintoolbar.cpp
979     radiant/plugintoolbar.h
980     radiant/points.cpp
981     radiant/points.h
982     radiant/preferencedictionary.cpp
983     radiant/preferencedictionary.h
984     radiant/preferences.cpp
985     radiant/preferences.h
986     radiant/qe3.cpp
987     radiant/qe3.h
988     radiant/qgl.cpp
989     radiant/qgl.h
990     radiant/referencecache.cpp
991     radiant/referencecache.h
992     radiant/renderer.cpp
993     radiant/renderer.h
994     radiant/renderstate.cpp
995     radiant/renderstate.h
996     radiant/resource.h
997     radiant/scenegraph.cpp
998     radiant/scenegraph.h
999     radiant/select.cpp
1000     radiant/select.h
1001     radiant/selection.cpp
1002     radiant/selection.h
1003     radiant/server.cpp
1004     radiant/server.h
1005     radiant/shaders.cpp
1006     radiant/shaders.h
1007     radiant/sockets.cpp
1008     radiant/sockets.h
1009     radiant/stacktrace.cpp
1010     radiant/stacktrace.h
1011     radiant/surfacedialog.cpp
1012     radiant/surfacedialog.h
1013     radiant/texmanip.cpp
1014     radiant/texmanip.h
1015     radiant/textureentry.cpp
1016     radiant/textureentry.h
1017     radiant/textures.cpp
1018     radiant/textures.h
1019     radiant/texwindow.cpp
1020     radiant/texwindow.h
1021     radiant/timer.cpp
1022     radiant/timer.h
1023     radiant/treemodel.cpp
1024     radiant/treemodel.h
1025     radiant/undo.cpp
1026     radiant/undo.h
1027     radiant/url.cpp
1028     radiant/url.h
1029     radiant/view.cpp
1030     radiant/view.h
1031     radiant/watchbsp.cpp
1032     radiant/watchbsp.h
1033     radiant/winding.cpp
1034     radiant/winding.h
1035     radiant/windowobservers.cpp
1036     radiant/windowobservers.h
1037     radiant/xmlstuff.cpp
1038     radiant/xmlstuff.h
1039     radiant/xywindow.cpp
1040     radiant/xywindow.h
1041 )
1042
1043 set(QUAKE2LIST
1044     tools/quake2/common/bspfile.c
1045     tools/quake2/common/bspfile.h
1046     tools/quake2/common/cmdlib.c
1047     tools/quake2/common/cmdlib.h
1048     tools/quake2/common/inout.c
1049     tools/quake2/common/inout.h
1050     tools/quake2/common/l3dslib.c
1051     tools/quake2/common/l3dslib.h
1052     tools/quake2/common/lbmlib.c
1053     tools/quake2/common/lbmlib.h
1054     tools/quake2/common/mathlib.c
1055     tools/quake2/common/mathlib.h
1056     tools/quake2/common/md4.c
1057     tools/quake2/common/md4.h
1058     tools/quake2/common/path_init.c
1059     tools/quake2/common/polylib.c
1060     tools/quake2/common/polylib.h
1061     tools/quake2/common/q2_threads.h
1062     tools/quake2/common/qfiles.h
1063     tools/quake2/common/scriplib.c
1064     tools/quake2/common/scriplib.h
1065     tools/quake2/common/threads.c
1066     tools/quake2/common/trilib.c
1067     tools/quake2/common/trilib.h
1068     tools/quake2/extra/bsp/bspinfo3/bspinfo3.c
1069     tools/quake2/extra/bsp/qbsp3/brushbsp.c
1070     tools/quake2/extra/bsp/qbsp3/csg.c
1071     tools/quake2/extra/bsp/qbsp3/faces.c
1072     tools/quake2/extra/bsp/qbsp3/gldraw.c
1073     tools/quake2/extra/bsp/qbsp3/glfile.c
1074     tools/quake2/extra/bsp/qbsp3/leakfile.c
1075     tools/quake2/extra/bsp/qbsp3/map.c
1076     tools/quake2/extra/bsp/qbsp3/nodraw.c
1077     tools/quake2/extra/bsp/qbsp3/portals.c
1078     tools/quake2/extra/bsp/qbsp3/prtfile.c
1079     tools/quake2/extra/bsp/qbsp3/qbsp.h
1080     tools/quake2/extra/bsp/qbsp3/qbsp3.c
1081     tools/quake2/extra/bsp/qbsp3/textures.c
1082     tools/quake2/extra/bsp/qbsp3/tree.c
1083     tools/quake2/extra/bsp/qbsp3/writebsp.c
1084     tools/quake2/extra/bsp/qrad3/lightmap.c
1085     tools/quake2/extra/bsp/qrad3/patches.c
1086     tools/quake2/extra/bsp/qrad3/qrad.h
1087     tools/quake2/extra/bsp/qrad3/qrad3.c
1088     tools/quake2/extra/bsp/qrad3/trace.c
1089     tools/quake2/extra/bsp/qvis3/flow.c
1090     tools/quake2/extra/bsp/qvis3/qvis3.c
1091     tools/quake2/extra/bsp/qvis3/vis.h
1092     tools/quake2/extra/common/bspfile.c
1093     tools/quake2/extra/common/bspfile.h
1094     tools/quake2/extra/common/cmdlib.c
1095     tools/quake2/extra/common/cmdlib.h
1096     tools/quake2/extra/common/l3dslib.c
1097     tools/quake2/extra/common/l3dslib.h
1098     tools/quake2/extra/common/lbmlib.c
1099     tools/quake2/extra/common/lbmlib.h
1100     tools/quake2/extra/common/mathlib.c
1101     tools/quake2/extra/common/mathlib.h
1102     tools/quake2/extra/common/mdfour.c
1103     tools/quake2/extra/common/mdfour.h
1104     tools/quake2/extra/common/polylib.c
1105     tools/quake2/extra/common/polylib.h
1106     tools/quake2/extra/common/qfiles.h
1107     tools/quake2/extra/common/scriplib.c
1108     tools/quake2/extra/common/scriplib.h
1109     tools/quake2/extra/common/threads.c
1110     tools/quake2/extra/common/threads.h
1111     tools/quake2/extra/common/trilib.c
1112     tools/quake2/extra/common/trilib.h
1113     tools/quake2/extra/qdata/anorms.h
1114     tools/quake2/extra/qdata/images.c
1115     tools/quake2/extra/qdata/models.c
1116     tools/quake2/extra/qdata/qdata.c
1117     tools/quake2/extra/qdata/qdata.h
1118     tools/quake2/extra/qdata/sprites.c
1119     tools/quake2/extra/qdata/tables.c
1120     tools/quake2/extra/qdata/video.c
1121     tools/quake2/extra/qe4/brush.c
1122     tools/quake2/extra/qe4/brush.h
1123     tools/quake2/extra/qe4/bspfile.h
1124     tools/quake2/extra/qe4/camera.c
1125     tools/quake2/extra/qe4/camera.h
1126     tools/quake2/extra/qe4/cmdlib.c
1127     tools/quake2/extra/qe4/cmdlib.h
1128     tools/quake2/extra/qe4/csg.c
1129     tools/quake2/extra/qe4/drag.c
1130     tools/quake2/extra/qe4/eclass.c
1131     tools/quake2/extra/qe4/entity.c
1132     tools/quake2/extra/qe4/entity.h
1133     tools/quake2/extra/qe4/entityw.h
1134     tools/quake2/extra/qe4/glingr.h
1135     tools/quake2/extra/qe4/lbmlib.c
1136     tools/quake2/extra/qe4/lbmlib.h
1137     tools/quake2/extra/qe4/map.c
1138     tools/quake2/extra/qe4/map.h
1139     tools/quake2/extra/qe4/mathlib.c
1140     tools/quake2/extra/qe4/mathlib.h
1141     tools/quake2/extra/qe4/mru.c
1142     tools/quake2/extra/qe4/mru.h
1143     tools/quake2/extra/qe4/parse.c
1144     tools/quake2/extra/qe4/parse.h
1145     tools/quake2/extra/qe4/points.c
1146     tools/quake2/extra/qe4/qe3.c
1147     tools/quake2/extra/qe4/qe3.h
1148     tools/quake2/extra/qe4/qedefs.h
1149     tools/quake2/extra/qe4/qfiles.h
1150     tools/quake2/extra/qe4/resource.h
1151     tools/quake2/extra/qe4/select.c
1152     tools/quake2/extra/qe4/select.h
1153     tools/quake2/extra/qe4/textures.c
1154     tools/quake2/extra/qe4/textures.h
1155     tools/quake2/extra/qe4/vertsel.c
1156     tools/quake2/extra/qe4/view.h
1157     tools/quake2/extra/qe4/win_cam.c
1158     tools/quake2/extra/qe4/win_dlg.c
1159     tools/quake2/extra/qe4/win_ent.c
1160     tools/quake2/extra/qe4/win_main.c
1161     tools/quake2/extra/qe4/win_qe3.c
1162     tools/quake2/extra/qe4/win_xy.c
1163     tools/quake2/extra/qe4/win_z.c
1164     tools/quake2/extra/qe4/xy.c
1165     tools/quake2/extra/qe4/xy.h
1166     tools/quake2/extra/qe4/z.c
1167     tools/quake2/extra/qe4/z.h
1168     tools/quake2/extra/texpaint/resource.h
1169     tools/quake2/extra/texpaint/texpaint.c
1170     tools/quake2/extra/texpaint/texpaint.h
1171     tools/quake2/extra/texpaint/win_cam.c
1172     tools/quake2/extra/texpaint/win_main.c
1173     tools/quake2/extra/texpaint/win_pal.c
1174     tools/quake2/extra/texpaint/win_skin.c
1175     tools/quake2/q2map/brushbsp.c
1176     tools/quake2/q2map/csg.c
1177     tools/quake2/q2map/faces.c
1178     tools/quake2/q2map/flow.c
1179     tools/quake2/q2map/gldraw.c
1180     tools/quake2/q2map/glfile.c
1181     tools/quake2/q2map/leakfile.c
1182     tools/quake2/q2map/lightmap.c
1183     tools/quake2/q2map/main.c
1184     tools/quake2/q2map/map.c
1185     tools/quake2/q2map/nodraw.c
1186     tools/quake2/q2map/patches.c
1187     tools/quake2/q2map/portals.c
1188     tools/quake2/q2map/prtfile.c
1189     tools/quake2/q2map/q2map.h
1190     tools/quake2/q2map/qbsp.c
1191     tools/quake2/q2map/qbsp.h
1192     tools/quake2/q2map/qrad.c
1193     tools/quake2/q2map/qrad.h
1194     tools/quake2/q2map/qvis.c
1195     tools/quake2/q2map/qvis.h
1196     tools/quake2/q2map/textures.c
1197     tools/quake2/q2map/trace.c
1198     tools/quake2/q2map/tree.c
1199     tools/quake2/q2map/writebsp.c
1200     tools/quake2/qdata/anorms.h
1201     tools/quake2/qdata/images.c
1202     tools/quake2/qdata/models.c
1203     tools/quake2/qdata/qdata.c
1204     tools/quake2/qdata/qdata.h
1205     tools/quake2/qdata/sprites.c
1206     tools/quake2/qdata/tables.c
1207     tools/quake2/qdata/video.c
1208     tools/quake2/qdata_heretic2/common/bspfile.c
1209     tools/quake2/qdata_heretic2/common/bspfile.h
1210     tools/quake2/qdata_heretic2/common/cmdlib.c
1211     tools/quake2/qdata_heretic2/common/cmdlib.h
1212     tools/quake2/qdata_heretic2/common/her2_threads.h
1213     tools/quake2/qdata_heretic2/common/inout.c
1214     tools/quake2/qdata_heretic2/common/inout.h
1215     tools/quake2/qdata_heretic2/common/l3dslib.c
1216     tools/quake2/qdata_heretic2/common/l3dslib.h
1217     tools/quake2/qdata_heretic2/common/lbmlib.c
1218     tools/quake2/qdata_heretic2/common/lbmlib.h
1219     tools/quake2/qdata_heretic2/common/mathlib.c
1220     tools/quake2/qdata_heretic2/common/mathlib.h
1221     tools/quake2/qdata_heretic2/common/md4.c
1222     tools/quake2/qdata_heretic2/common/md4.h
1223     tools/quake2/qdata_heretic2/common/path_init.c
1224     tools/quake2/qdata_heretic2/common/polylib.c
1225     tools/quake2/qdata_heretic2/common/polylib.h
1226     tools/quake2/qdata_heretic2/common/qfiles.c
1227     tools/quake2/qdata_heretic2/common/qfiles.h
1228     tools/quake2/qdata_heretic2/common/scriplib.c
1229     tools/quake2/qdata_heretic2/common/scriplib.h
1230     tools/quake2/qdata_heretic2/common/threads.c
1231     tools/quake2/qdata_heretic2/common/token.c
1232     tools/quake2/qdata_heretic2/common/token.h
1233     tools/quake2/qdata_heretic2/common/trilib.c
1234     tools/quake2/qdata_heretic2/common/trilib.h
1235     tools/quake2/qdata_heretic2/qcommon/angles.h
1236     tools/quake2/qdata_heretic2/qcommon/arrayedlist.h
1237     tools/quake2/qdata_heretic2/qcommon/flex.h
1238     tools/quake2/qdata_heretic2/qcommon/fmodel.h
1239     tools/quake2/qdata_heretic2/qcommon/h2common.h
1240     tools/quake2/qdata_heretic2/qcommon/placement.h
1241     tools/quake2/qdata_heretic2/qcommon/q_typedef.h
1242     tools/quake2/qdata_heretic2/qcommon/qfiles.h
1243     tools/quake2/qdata_heretic2/qcommon/reference.c
1244     tools/quake2/qdata_heretic2/qcommon/reference.h
1245     tools/quake2/qdata_heretic2/qcommon/resourcemanager.c
1246     tools/quake2/qdata_heretic2/qcommon/resourcemanager.h
1247     tools/quake2/qdata_heretic2/qcommon/skeletons.c
1248     tools/quake2/qdata_heretic2/qcommon/skeletons.h
1249     tools/quake2/qdata_heretic2/adpcm.h
1250     tools/quake2/qdata_heretic2/animcomp.c
1251     tools/quake2/qdata_heretic2/animcomp.h
1252     tools/quake2/qdata_heretic2/anorms.h
1253     tools/quake2/qdata_heretic2/book.c
1254     tools/quake2/qdata_heretic2/fmodels.c
1255     tools/quake2/qdata_heretic2/images.c
1256     tools/quake2/qdata_heretic2/jointed.c
1257     tools/quake2/qdata_heretic2/jointed.h
1258     tools/quake2/qdata_heretic2/joints.h
1259     tools/quake2/qdata_heretic2/models.c
1260     tools/quake2/qdata_heretic2/pics.c
1261     tools/quake2/qdata_heretic2/qd_fmodel.h
1262     tools/quake2/qdata_heretic2/qd_skeletons.c
1263     tools/quake2/qdata_heretic2/qd_skeletons.h
1264     tools/quake2/qdata_heretic2/qdata.c
1265     tools/quake2/qdata_heretic2/qdata.h
1266     tools/quake2/qdata_heretic2/resource.h
1267     tools/quake2/qdata_heretic2/sprites.c
1268     tools/quake2/qdata_heretic2/svdcmp.c
1269     tools/quake2/qdata_heretic2/tables.c
1270     tools/quake2/qdata_heretic2/tmix.c
1271     tools/quake2/qdata_heretic2/video.c
1272 )
1273
1274 set(QUAKE3LIST
1275     tools/quake3/common/aselib.c
1276     tools/quake3/common/aselib.h
1277     tools/quake3/common/bspfile.c
1278     tools/quake3/common/bspfile.h
1279     tools/quake3/common/cmdlib.c
1280     tools/quake3/common/cmdlib.h
1281     tools/quake3/common/inout.c
1282     tools/quake3/common/jpeg.c
1283     tools/quake3/common/l3dslib.c
1284     tools/quake3/common/l3dslib.h
1285     tools/quake3/common/md4.c
1286     tools/quake3/common/md4.h
1287     tools/quake3/common/mutex.c
1288     tools/quake3/common/mutex.h
1289     tools/quake3/common/polylib.c
1290     tools/quake3/common/polylib.h
1291     tools/quake3/common/polyset.h
1292     tools/quake3/common/qfiles.h
1293     tools/quake3/common/qthreads.h
1294     tools/quake3/common/scriplib.c
1295     tools/quake3/common/scriplib.h
1296     tools/quake3/common/surfaceflags.h
1297     tools/quake3/common/threads.c
1298     tools/quake3/common/trilib.c
1299     tools/quake3/common/trilib.h
1300     tools/quake3/common/unzip.c
1301     tools/quake3/common/unzip.h
1302     tools/quake3/common/vfs.c
1303     tools/quake3/common/vfs.h
1304     tools/quake3/common/imagelib.c
1305     tools/quake3/common/imagelib.h
1306     tools/quake3/common/inout.h
1307     tools/quake3/q3data/3dslib.c
1308     tools/quake3/q3data/3dslib.h
1309     tools/quake3/q3data/compress.c
1310     tools/quake3/q3data/images.c
1311     tools/quake3/q3data/md3lib.c
1312     tools/quake3/q3data/md3lib.h
1313     tools/quake3/q3data/models.c
1314     tools/quake3/q3data/oldstuff.c
1315     tools/quake3/q3data/p3dlib.c
1316     tools/quake3/q3data/p3dlib.h
1317     tools/quake3/q3data/polyset.c
1318     tools/quake3/q3data/q3data.c
1319     tools/quake3/q3data/q3data.h
1320     tools/quake3/q3data/stripper.c
1321     tools/quake3/q3data/video.c
1322     tools/quake3/q3map2/brush.c
1323     tools/quake3/q3map2/brush_primit.c
1324     tools/quake3/q3map2/bsp.c
1325     tools/quake3/q3map2/bspfile_abstract.c
1326     tools/quake3/q3map2/bspfile_ibsp.c
1327     tools/quake3/q3map2/bspfile_rbsp.c
1328     tools/quake3/q3map2/convert_ase.c
1329     tools/quake3/q3map2/convert_map.c
1330     tools/quake3/q3map2/convert_obj.c
1331     tools/quake3/q3map2/decals.c
1332     tools/quake3/q3map2/facebsp.c
1333     tools/quake3/q3map2/fog.c
1334     tools/quake3/q3map2/game__null.h
1335     tools/quake3/q3map2/game_darkplaces.h
1336     tools/quake3/q3map2/game_dq.h
1337     tools/quake3/q3map2/game_ef.h
1338     tools/quake3/q3map2/game_etut.h
1339     tools/quake3/q3map2/game_ja.h
1340     tools/quake3/q3map2/game_jk2.h
1341     tools/quake3/q3map2/game_nexuiz.h
1342     tools/quake3/q3map2/game_prophecy.h
1343     tools/quake3/q3map2/game_qfusion.h
1344     tools/quake3/q3map2/game_quake3.h
1345     tools/quake3/q3map2/game_quakelive.h
1346     tools/quake3/q3map2/game_reaction.h
1347     tools/quake3/q3map2/game_sof2.h
1348     tools/quake3/q3map2/game_t.h
1349     tools/quake3/q3map2/game_tenebrae.h
1350     tools/quake3/q3map2/game_tremulous.h
1351     tools/quake3/q3map2/game_wolf.h
1352     tools/quake3/q3map2/game_wolfet.h
1353     tools/quake3/q3map2/game_xonotic.h
1354     tools/quake3/q3map2/leakfile.c
1355     tools/quake3/q3map2/light.c
1356     tools/quake3/q3map2/light_bounce.c
1357     tools/quake3/q3map2/light_shadows.c
1358     tools/quake3/q3map2/light_trace.c
1359     tools/quake3/q3map2/light_ydnar.c
1360     tools/quake3/q3map2/lightmaps.c
1361     tools/quake3/q3map2/lightmaps_ydnar.c
1362     tools/quake3/q3map2/map.c
1363     tools/quake3/q3map2/mesh.c
1364     tools/quake3/q3map2/model.c
1365     tools/quake3/q3map2/patch.c
1366     tools/quake3/q3map2/path_init.c
1367     tools/quake3/q3map2/portals.c
1368     tools/quake3/q3map2/prtfile.c
1369     tools/quake3/q3map2/shaders.c
1370     tools/quake3/q3map2/surface.c
1371     tools/quake3/q3map2/surface_extra.c
1372     tools/quake3/q3map2/surface_foliage.c
1373     tools/quake3/q3map2/surface_fur.c
1374     tools/quake3/q3map2/surface_meta.c
1375     tools/quake3/q3map2/tjunction.c
1376     tools/quake3/q3map2/tree.c
1377     tools/quake3/q3map2/vis.c
1378     tools/quake3/q3map2/visflow.c
1379     tools/quake3/q3map2/writebsp.c
1380     tools/quake3/q3map2/image.c
1381     tools/quake3/q3map2/main.c
1382     tools/quake3/q3map2/nav.cpp
1383     tools/quake3/q3map2/navgen.h
1384     tools/quake3/q3map2/q3map2.h
1385 )
1386
1387 add_executable(radiant WIN32 radiant/radiant.rc ${RADIANTLIST})
1388 target_link_libraries(radiant
1389     ${CMAKE_DL_LIBS}
1390     ${LIBXML2_LIBRARIES}
1391     ${GTK2_LIBRARIES}
1392     ${OPENGL_gl_LIBRARY}
1393     cmdlib
1394     container
1395     ddslib
1396     debugging
1397     gtkutil
1398     ${GTKGL_LIBRARIES}
1399     l_net
1400 #    math
1401     mathlib
1402     md5lib
1403     memory
1404     modulesystem
1405     os
1406     picomodel
1407     profile
1408     script
1409     signal
1410     splines
1411     stream
1412     string
1413     xml
1414 )