equal
deleted
inserted
replaced
15 #find_package(QCA2 REQUIRED) |
15 #find_package(QCA2 REQUIRED) |
16 #include_directories(${QCA2_INCLUDE_DIR}) |
16 #include_directories(${QCA2_INCLUDE_DIR}) |
17 |
17 |
18 # Configure for SDL |
18 # Configure for SDL |
19 find_package(SDL REQUIRED) |
19 find_package(SDL REQUIRED) |
20 find_package(SDL_mixer REQUIRED) |
20 find_package(OpenAL REQUIRED) |
|
21 find_package(OggVorbis REQUIRED) |
21 |
22 |
22 include_directories(${SDL_INCLUDE_DIR}) |
23 include_directories(${SDL_INCLUDE_DIR}) |
23 include_directories(${SDLMIXER_INCLUDE_DIR}) |
24 |
24 if(UNIX) |
25 if(UNIX) |
25 include_directories("/usr/local/include") # HACK: in freebsd cannot find iconv.h included via SDL.h |
26 include_directories("/usr/local/include") # HACK: in freebsd cannot find iconv.h included via SDL.h |
26 endif(UNIX) |
27 endif(UNIX) |
27 |
28 |
28 # Done |
29 # Done |
162 add_executable(hedgewars WIN32 |
163 add_executable(hedgewars WIN32 |
163 ${hwfr_src} |
164 ${hwfr_src} |
164 ${hwfr_moc_srcs} |
165 ${hwfr_moc_srcs} |
165 ${hwfr_hdrs} |
166 ${hwfr_hdrs} |
166 ${hwfr_rez_src}) |
167 ${hwfr_rez_src}) |
167 |
168 |
|
169 find_library(OPENALBRIDGE_LIBRARY libopenalbridge.a PATH ${EXECUTABLE_OUTPUT_PATH} ) |
|
170 |
168 set(HW_LINK_LIBS |
171 set(HW_LINK_LIBS |
169 ${QT_LIBRARIES} |
172 ${QT_LIBRARIES} |
170 # ${QCA2_LIBRARIES} |
|
171 ${SDL_LIBRARY} |
173 ${SDL_LIBRARY} |
172 ${SDLMIXER_LIBRARY} |
174 ${OPENAL_LIBRARY} |
173 ) |
175 ${OGG_LIBRARY} |
|
176 ${VORBIS_LIBRARY} |
|
177 ${VORBISFILE_LIBRARY} |
|
178 ${OPENALBRIDGE_LIBRARY} |
|
179 ) |
174 |
180 |
175 if(WIN32 AND NOT UNIX) |
181 if(WIN32 AND NOT UNIX) |
176 if(NOT SDL_LIBRARY) |
182 if(NOT SDL_LIBRARY) |
177 set(HW_LINK_LIBS |
183 set(HW_LINK_LIBS |
178 ${HW_LINK_LIBS} |
184 ${HW_LINK_LIBS} |