]> git.xonotic.org Git - xonotic/netradiant.git/blob - radiant/CMakeLists.txt
Appveyor
[xonotic/netradiant.git] / radiant / CMakeLists.txt
1 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
2
3 find_package(LibXml2 REQUIRED)
4 include_directories(${LIBXML2_INCLUDE_DIR})
5
6 find_package(GTK2 REQUIRED)
7 include_directories(${GTK2_INCLUDE_DIRS} ${GTK2_GDK_INCLUDE_DIR} ${GTK2_GLIB_INCLUDE_DIR})
8
9 find_package(OpenGL REQUIRED)
10
11 find_package(GtkGLExt REQUIRED)
12 include_directories(${GTKGL_INCLUDE_DIRS})
13
14 include_directories("${CMAKE_SOURCE_DIR}/libs")
15 include_directories("${CMAKE_SOURCE_DIR}/include")
16
17 set(RADIANTLIST
18     autosave.cpp
19     autosave.h
20     brush.cpp
21     brush.h
22     brush_primit.cpp
23     brush_primit.h
24     brushmanip.cpp
25     brushmanip.h
26     brushmodule.cpp
27     brushmodule.h
28     brushnode.cpp
29     brushnode.h
30     brushtokens.cpp
31     brushtokens.h
32     brushxml.cpp
33     brushxml.h
34     build.cpp
35     build.h
36     camwindow.cpp
37     camwindow.h
38     clippertool.cpp
39     clippertool.h
40     commands.cpp
41     commands.h
42     console.cpp
43     console.h
44     csg.cpp
45     csg.h
46     dialog.cpp
47     dialog.h
48     eclass.cpp
49     eclass.h
50     eclass_def.cpp
51     eclass_def.h
52     eclass_doom3.cpp
53     eclass_doom3.h
54     eclass_fgd.cpp
55     eclass_fgd.h
56     eclass_xml.cpp
57     eclass_xml.h
58     entity.cpp
59     entity.h
60     entityinspector.cpp
61     entityinspector.h
62     entitylist.cpp
63     entitylist.h
64     environment.cpp
65     environment.h
66     error.cpp
67     error.h
68     feedback.cpp
69     feedback.h
70     filetypes.cpp
71     filetypes.h
72     filters.cpp
73     filters.h
74     findtexturedialog.cpp
75     findtexturedialog.h
76     glwidget.cpp
77     glwidget.h
78     grid.cpp
79     grid.h
80     groupdialog.cpp
81     groupdialog.h
82     gtkdlgs.cpp
83     gtkdlgs.h
84     gtkmisc.cpp
85     gtkmisc.h
86     help.cpp
87     help.h
88     image.cpp
89     image.h
90     main.cpp
91     main.h
92     mainframe.cpp
93     mainframe.h
94     map.cpp
95     map.h
96     mru.cpp
97     mru.h
98     multimon.cpp
99     multimon.h
100     nullmodel.cpp
101     nullmodel.h
102     parse.cpp
103     parse.h
104     patch.cpp
105     patch.h
106     patchdialog.cpp
107     patchdialog.h
108     patchmanip.cpp
109     patchmanip.h
110     patchmodule.cpp
111     patchmodule.h
112     plugin.cpp
113     plugin.h
114     pluginapi.cpp
115     pluginapi.h
116     pluginmanager.cpp
117     pluginmanager.h
118     pluginmenu.cpp
119     pluginmenu.h
120     plugintoolbar.cpp
121     plugintoolbar.h
122     points.cpp
123     points.h
124     preferencedictionary.cpp
125     preferencedictionary.h
126     preferences.cpp
127     preferences.h
128     qe3.cpp
129     qe3.h
130     qgl.cpp
131     qgl.h
132     referencecache.cpp
133     referencecache.h
134     renderer.cpp
135     renderer.h
136     renderstate.cpp
137     renderstate.h
138     resource.h
139     scenegraph.cpp
140     scenegraph.h
141     select.cpp
142     select.h
143     selection.cpp
144     selection.h
145     server.cpp
146     server.h
147     shaders.cpp
148     shaders.h
149     sockets.cpp
150     sockets.h
151     stacktrace.cpp
152     stacktrace.h
153     surfacedialog.cpp
154     surfacedialog.h
155     texmanip.cpp
156     texmanip.h
157     textureentry.cpp
158     textureentry.h
159     textures.cpp
160     textures.h
161     texwindow.cpp
162     texwindow.h
163     timer.cpp
164     timer.h
165     treemodel.cpp
166     treemodel.h
167     undo.cpp
168     undo.h
169     url.cpp
170     url.h
171     view.cpp
172     view.h
173     watchbsp.cpp
174     watchbsp.h
175     winding.cpp
176     winding.h
177     windowobservers.cpp
178     windowobservers.h
179     xmlstuff.cpp
180     xmlstuff.h
181     xywindow.cpp
182     xywindow.h
183     "${CMAKE_BINARY_DIR}/version.cpp"
184 )
185
186 add_executable(radiant WIN32 radiant.rc ${RADIANTLIST})
187 target_link_libraries(radiant
188     ${CMAKE_DL_LIBS}
189     ${LIBXML2_LIBRARIES}
190     ${OPENGL_gl_LIBRARY}
191     ${GTK2_LIBRARIES}
192     ${GTK2_PANGO_LIBRARY}
193     ${GTKGL_LIBRARIES}
194     includes
195     cmdlib
196     container
197     ddslib
198     debugging
199     etclib
200     filematch
201     generic
202     gtkutil
203     l_net
204     math
205     mathlib
206     md5lib
207     memory
208     modulesystem
209     os
210     picomodel
211     profile
212     script
213     signal
214     splines
215     stream
216     string
217     uilib
218     xmllib
219 )
220 if (X11_LIBRARIES)
221     target_link_libraries(radiant ${X11_LIBRARIES})
222 endif ()