equal
deleted
inserted
replaced
26 # Configure for SDL |
26 # Configure for SDL |
27 find_package(SDL REQUIRED) |
27 find_package(SDL REQUIRED) |
28 find_package(SDL_mixer REQUIRED) |
28 find_package(SDL_mixer REQUIRED) |
29 |
29 |
30 include_directories(.) |
30 include_directories(.) |
|
31 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
|
32 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
|
33 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/dialog) |
|
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page) |
|
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/model) |
|
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget) |
|
37 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util) |
31 include_directories(${SDL_INCLUDE_DIR}) |
38 include_directories(${SDL_INCLUDE_DIR}) |
32 include_directories(${SDLMIXER_INCLUDE_DIR}) |
39 include_directories(${SDLMIXER_INCLUDE_DIR}) |
33 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip) |
40 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip) |
34 if(UNIX) |
41 if(UNIX) |
35 # HACK: in freebsd cannot find iconv.h included via SDL.h |
42 # HACK: in freebsd cannot find iconv.h included via SDL.h |
55 endif() |
62 endif() |
56 |
63 |
57 |
64 |
58 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hwconsts.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp) |
65 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hwconsts.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp) |
59 |
66 |
|
67 file(GLOB NetCpp ${CMAKE_CURRENT_SOURCE_DIR} net/*.cpp) |
|
68 file(GLOB_RECURSE UIcpp ${CMAKE_CURRENT_SOURCE_DIR} ui/*.cpp) |
|
69 file(GLOB UtilCpp ${CMAKE_CURRENT_SOURCE_DIR} util/*.cpp) |
|
70 |
60 set(hwfr_src |
71 set(hwfr_src |
|
72 ${NetCpp} |
|
73 ${UIcpp} |
|
74 ${UtilCpp} |
|
75 AbstractPage.cpp |
|
76 achievements.cpp |
|
77 binds.cpp |
|
78 drawmapscene.cpp |
|
79 game.cpp |
|
80 gameuiconfig.cpp |
61 HWApplication.cpp |
81 HWApplication.cpp |
62 game.cpp |
82 hwform.cpp |
63 main.cpp |
83 main.cpp |
64 hwform.cpp |
84 mapContainer.cpp |
|
85 SDLs.cpp |
65 team.cpp |
86 team.cpp |
66 namegen.cpp |
|
67 teamselect.cpp |
|
68 teamselhelper.cpp |
|
69 frameTeam.cpp |
|
70 vertScrollArea.cpp |
|
71 gameuiconfig.cpp |
|
72 ui_hwform.cpp |
87 ui_hwform.cpp |
73 gamecfgwidget.cpp |
|
74 AbstractPage.cpp |
|
75 pagemain.cpp |
|
76 pageeditteam.cpp |
|
77 pagemultiplayer.cpp |
|
78 pageoptions.cpp |
|
79 pagenet.cpp |
|
80 pagenetserver.cpp |
|
81 pagenetgame.cpp |
|
82 pageinfo.cpp |
|
83 pagedata.cpp |
|
84 pagesingleplayer.cpp |
|
85 pagetraining.cpp |
|
86 pagecampaign.cpp |
|
87 pageselectweapon.cpp |
|
88 pageingame.cpp |
|
89 pageroomslist.cpp |
|
90 pageconnecting.cpp |
|
91 pagescheme.cpp |
|
92 pagegamestats.cpp |
|
93 pageplayrecord.cpp |
|
94 pageadmin.cpp |
|
95 pagenettype.cpp |
|
96 pagedrawmap.cpp |
|
97 SquareLabel.cpp |
|
98 hats.cpp |
|
99 hedgehogerWidget.cpp |
|
100 hwmap.cpp |
|
101 mapContainer.cpp |
|
102 tcpBase.cpp |
|
103 about.cpp |
|
104 proto.cpp |
|
105 fpsedit.cpp |
|
106 netserver.cpp |
|
107 newnetclient.cpp |
|
108 netudpserver.cpp |
|
109 netudpwidget.cpp |
|
110 netregister.cpp |
|
111 netserverslist.cpp |
|
112 chatwidget.cpp |
|
113 binds.cpp |
|
114 SDLs.cpp |
|
115 ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp |
88 ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp |
116 selectWeapon.cpp |
|
117 itemNum.cpp |
|
118 input_ip.cpp |
|
119 igbox.cpp |
|
120 weaponItem.cpp |
|
121 misc.cpp |
|
122 ammoSchemeModel.cpp |
|
123 togglebutton.cpp |
|
124 bgwidget.cpp |
|
125 achievements.cpp |
|
126 qaspectratiolayout.cpp |
|
127 drawmapwidget.cpp |
|
128 drawmapscene.cpp |
|
129 themesmodel.cpp |
|
130 databrowser.cpp |
|
131 ) |
89 ) |
132 |
90 |
133 #xfire integration |
91 #xfire integration |
134 if(WIN32) |
92 if(WIN32) |
135 set(hwfr_src ${hwfr_src} xfire.cpp ../misc/xfire/xfiregameclient.cpp) |
93 set(hwfr_src ${hwfr_src} xfire.cpp ../misc/xfire/xfiregameclient.cpp) |
144 set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) |
102 set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) |
145 else(MINGW) |
103 else(MINGW) |
146 set(hwfr_src ${hwfr_src} hedgewars.rc) |
104 set(hwfr_src ${hwfr_src} hedgewars.rc) |
147 endif(MINGW) |
105 endif(MINGW) |
148 |
106 |
|
107 file(GLOB NetHdr ${CMAKE_CURRENT_SOURCE_DIR} net/*.h) |
|
108 file(GLOB_RECURSE UIhdr ${CMAKE_CURRENT_SOURCE_DIR} ui/*.h) |
|
109 file(GLOB UtilHdr ${CMAKE_CURRENT_SOURCE_DIR} util/*.h) |
|
110 |
|
111 |
149 set(hwfr_moc_hdrs |
112 set(hwfr_moc_hdrs |
|
113 ${NetHdr} |
|
114 ${UIhdr} |
|
115 AbstractPage.h |
|
116 drawmapscene.h |
|
117 game.h |
|
118 gameuiconfig.h |
150 HWApplication.h |
119 HWApplication.h |
151 game.h |
|
152 hats.h |
|
153 hwform.h |
120 hwform.h |
154 teamselect.h |
|
155 teamselhelper.h |
|
156 frameTeam.h |
|
157 vertScrollArea.h |
|
158 gameuiconfig.h |
|
159 gamecfgwidget.h |
|
160 AbstractPage.h |
|
161 pagenet.h |
|
162 pagemultiplayer.h |
|
163 pagenetserver.h |
|
164 pageingame.h |
|
165 pagetraining.h |
|
166 pageeditteam.h |
|
167 pageoptions.h |
|
168 pagemain.h |
|
169 pageinfo.h |
|
170 pagedata.h |
|
171 pagesingleplayer.h |
|
172 pagenettype.h |
|
173 pageconnecting.h |
|
174 pagedrawmap.h |
|
175 pagecampaign.h |
|
176 pagenetgame.h |
|
177 pageroomslist.h |
|
178 pagegamestats.h |
|
179 pageadmin.h |
|
180 pagescheme.h |
|
181 pageselectweapon.h |
|
182 pageplayrecord.h |
|
183 SquareLabel.h |
|
184 hedgehogerWidget.h |
|
185 hwmap.h |
|
186 mapContainer.h |
121 mapContainer.h |
187 tcpBase.h |
|
188 about.h |
|
189 proto.h |
|
190 fpsedit.h |
|
191 netserver.h |
|
192 newnetclient.h |
|
193 netudpserver.h |
|
194 netudpwidget.h |
|
195 netregister.h |
|
196 netserverslist.h |
|
197 chatwidget.h |
|
198 SDLs.h |
122 SDLs.h |
199 selectWeapon.h |
|
200 itemNum.h |
|
201 input_ip.h |
|
202 igbox.h |
|
203 weaponItem.h |
|
204 misc.h |
|
205 ammoSchemeModel.h |
|
206 togglebutton.h |
|
207 bgwidget.h |
|
208 qaspectratiolayout.h |
|
209 drawmapwidget.h |
|
210 drawmapscene.h |
|
211 themesmodel.h |
|
212 databrowser.h |
|
213 ) |
123 ) |
214 |
124 |
215 set(hwfr_hdrs |
125 set(hwfr_hdrs |
|
126 ${UtilHdr} |
|
127 team.h |
|
128 achievements.h |
216 binds.h |
129 binds.h |
217 ui_hwform.h |
130 ui_hwform.h |
218 KB.h |
131 KB.h |
219 hwconsts.h |
132 hwconsts.h |
|
133 sdlkeys.h |
220 ) |
134 ) |
221 |
135 |
222 set(hwfr_rez hedgewars.qrc) |
136 set(hwfr_rez hedgewars.qrc) |
223 |
137 |
224 qt4_add_resources(hwfr_rez_src ${hwfr_rez}) |
138 qt4_add_resources(hwfr_rez_src ${hwfr_rez}) |