equal
deleted
inserted
replaced
149 predefteams.h |
149 predefteams.h |
150 KB.h |
150 KB.h |
151 hwconsts.h |
151 hwconsts.h |
152 ) |
152 ) |
153 |
153 |
154 set(hwfr_rez |
154 set(hwfr_rez hedgewars.qrc) |
155 hedgewars.qrc) |
|
156 |
155 |
157 qt4_add_resources(hwfr_rez_src |
156 qt4_add_resources(hwfr_rez_src |
158 ${hwfr_rez}) |
157 ${hwfr_rez}) |
159 |
158 |
160 qt4_wrap_cpp(hwfr_moc_srcs |
159 qt4_wrap_cpp(hwfr_moc_srcs |
164 ${hwfr_src} |
163 ${hwfr_src} |
165 ${hwfr_moc_srcs} |
164 ${hwfr_moc_srcs} |
166 ${hwfr_hdrs} |
165 ${hwfr_hdrs} |
167 ${hwfr_rez_src}) |
166 ${hwfr_rez_src}) |
168 |
167 |
|
168 |
169 set(HW_LINK_LIBS |
169 set(HW_LINK_LIBS |
170 ${QT_LIBRARIES} |
170 ${QT_LIBRARIES} |
171 ${SDL_LIBRARY} |
171 ${SDL_LIBRARY} |
172 openalbridge |
172 openalbridge |
173 ) |
173 ) |
174 |
174 |
175 #since openalbridge is linked statically with non-m$ compilers we need to explicitly link dependencies |
175 #since openalbridge is linked statically with non-m$ compilers we need to explicitly link dependencies |
176 if(NOT MSVC) |
176 #moreover in windows they need to be compiled in a particular order |
|
177 if(NOT MSVC AND NOT APPLE) |
177 set(HW_LINK_LIBS |
178 set(HW_LINK_LIBS |
178 ${OPENAL_LIBRARY} |
179 ${OPENAL_LIBRARY} |
|
180 ${VORBISFILE_LIBRARY} |
|
181 ${VORBIS_LIBRARY} |
179 ${OGG_LIBRARY} |
182 ${OGG_LIBRARY} |
180 ${VORBIS_LIBRARY} |
|
181 ${HW_LINK_LIBS} |
183 ${HW_LINK_LIBS} |
182 ) |
184 ) |
183 if(NOT APPLE) |
185 endif(NOT MSVC AND NOT APPLE) |
|
186 #no vorbisfile required here |
|
187 if(APPLE) |
184 set(HW_LINK_LIBS |
188 set(HW_LINK_LIBS |
185 ${VORBISFILE_LIBRARY} |
189 ${OPENAL_LIBRARY} |
|
190 ${VORBIS_LIBRARY} |
|
191 ${OGG_LIBRARY} |
186 ${HW_LINK_LIBS} |
192 ${HW_LINK_LIBS} |
187 ) |
193 ) |
188 endif(NOT APPLE) |
194 endif(APPLE) |
189 endif(NOT MSVC) |
|
190 |
195 |
191 |
196 |
192 if(WIN32 AND NOT UNIX) |
197 if(WIN32 AND NOT UNIX) |
193 if(NOT SDL_LIBRARY) |
198 if(NOT SDL_LIBRARY) |
194 set(HW_LINK_LIBS |
199 set(HW_LINK_LIBS |
204 winspool |
209 winspool |
205 uuid |
210 uuid |
206 ) |
211 ) |
207 endif(WIN32 AND NOT UNIX) |
212 endif(WIN32 AND NOT UNIX) |
208 |
213 |
209 target_link_libraries(hedgewars |
214 |
210 ${HW_LINK_LIBS}) |
215 target_link_libraries(hedgewars ${HW_LINK_LIBS}) |
|
216 |
211 |
217 |
212 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir}) |
218 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir}) |
|
219 |