equal
deleted
inserted
replaced
26 |
26 |
27 |
27 |
28 # Configure for SDL |
28 # Configure for SDL |
29 find_package(SDL REQUIRED) |
29 find_package(SDL REQUIRED) |
30 find_package(SDL_mixer REQUIRED) |
30 find_package(SDL_mixer REQUIRED) |
|
31 find_package(FFMPEG REQUIRED) |
31 |
32 |
32 include_directories(.) |
33 include_directories(.) |
33 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model) |
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model) |
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
37 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page) |
38 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page) |
38 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget) |
39 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget) |
39 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util) |
40 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util) |
40 include_directories(${SDL_INCLUDE_DIR}) |
41 include_directories(${SDL_INCLUDE_DIR}) |
41 include_directories(${SDLMIXER_INCLUDE_DIR}) |
42 include_directories(${SDLMIXER_INCLUDE_DIR}) |
|
43 include_directories(${FFMPEG_INCLUDE_DIR}) |
42 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip) |
44 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip) |
43 if(UNIX) |
45 if(UNIX) |
44 # HACK: in freebsd cannot find iconv.h included via SDL.h |
46 # HACK: in freebsd cannot find iconv.h included via SDL.h |
45 include_directories("/usr/local/include") |
47 include_directories("/usr/local/include") |
46 endif(UNIX) |
48 endif(UNIX) |
154 set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS}) |
156 set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS}) |
155 endif() |
157 endif() |
156 endif() |
158 endif() |
157 endif() |
159 endif() |
158 |
160 |
159 IF (WIN32) |
|
160 link_directories(${CMAKE_SOURCE_DIR}/misc/winutils/lib) |
|
161 ENDIF() |
|
162 |
161 |
163 add_executable(hedgewars WIN32 |
162 add_executable(hedgewars WIN32 |
164 ${hwfr_src} |
163 ${hwfr_src} |
165 ${hwfr_moc_srcs} |
164 ${hwfr_moc_srcs} |
166 ${hwfr_hdrs} |
165 ${hwfr_hdrs} |
168 ) |
167 ) |
169 |
168 |
170 |
169 |
171 set(HW_LINK_LIBS |
170 set(HW_LINK_LIBS |
172 quazip |
171 quazip |
173 avformat |
|
174 avcodec |
|
175 avutil |
|
176 ${QT_LIBRARIES} |
172 ${QT_LIBRARIES} |
177 ${SDL_LIBRARY} |
173 ${SDL_LIBRARY} |
178 ${SDLMIXER_LIBRARY} |
174 ${SDLMIXER_LIBRARY} |
|
175 ${FFMPEG_LIBRARIES} |
179 ${HW_LINK_LIBS} |
176 ${HW_LINK_LIBS} |
180 ) |
177 ) |
181 |
178 |
182 if(WIN32 AND NOT UNIX) |
179 if(WIN32 AND NOT UNIX) |
183 if(NOT SDL_LIBRARY) |
180 if(NOT SDL_LIBRARY) |