~ubuntu-branches/ubuntu/trusty/hedgewars/trusty-proposed

« back to all changes in this revision

Viewing changes to QTfrontend/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-11-20 18:31:17 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20111120183117-pjhz1n2pvnmxa246
Tags: 0.9.17-1
* [Paul Wise]
 * Mention the homing bee in the package description (Closes: #577092)
 * Also install the hwengine desktop file (LP: #811770)
 * Depend on ttf-dejavu-core since it is smaller
 * Depend on ttf-wqy-zenhei instead of embedding a copy of it
* [Dmitry E. Oboukhov]
 * New upstream version.

Show diffs side-by-side

added added

removed removed

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