QTfrontend/CMakeLists.txt
changeset 7528 f8cf277dca36
parent 7278 000e4543f204
child 7617 0ac281e1b58b
--- a/QTfrontend/CMakeLists.txt	Thu Aug 09 01:01:06 2012 +0400
+++ b/QTfrontend/CMakeLists.txt	Thu Aug 09 01:24:38 2012 +0400
@@ -28,6 +28,7 @@
 # Configure for SDL
 find_package(SDL REQUIRED)
 find_package(SDL_mixer REQUIRED)
+find_package(FFMPEG REQUIRED)
 
 include_directories(.)
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model)
@@ -39,6 +40,7 @@
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util)
 include_directories(${SDL_INCLUDE_DIR})
 include_directories(${SDLMIXER_INCLUDE_DIR})
+include_directories(${FFMPEG_INCLUDE_DIR})
 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip)
 if(UNIX)
     # HACK: in freebsd cannot find iconv.h included via SDL.h
@@ -156,9 +158,6 @@
     endif()
 endif()
 
-IF (WIN32)
-    link_directories(${CMAKE_SOURCE_DIR}/misc/winutils/lib)
-ENDIF()
 
 add_executable(hedgewars WIN32
     ${hwfr_src}
@@ -170,12 +169,10 @@
 
 set(HW_LINK_LIBS
     quazip
-    avformat
-    avcodec
-    avutil
     ${QT_LIBRARIES}
     ${SDL_LIBRARY}
     ${SDLMIXER_LIBRARY}
+    ${FFMPEG_LIBRARIES}
     ${HW_LINK_LIBS}
     )