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