--- a/QTfrontend/CMakeLists.txt Thu Aug 30 12:47:41 2012 -0400
+++ b/QTfrontend/CMakeLists.txt Thu Aug 30 13:02:19 2012 -0400
@@ -28,6 +28,7 @@
# Configure for SDL
find_package(SDL REQUIRED)
find_package(SDL_mixer REQUIRED)
+find_package(FFMPEG)
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
@@ -71,6 +73,10 @@
file(GLOB_RECURSE UIcpp ui/*.cpp)
file(GLOB UtilCpp util/*.cpp)
+if((NOT NO_VIDEOREC) AND "${FFMPEG_FOUND}")
+ add_definitions(-DVIDEOREC)
+endif()
+
set(hwfr_src
${ModelCpp}
${NetCpp}
@@ -172,6 +178,7 @@
${QT_LIBRARIES}
${SDL_LIBRARY}
${SDLMIXER_LIBRARY}
+ ${FFMPEG_LIBRARIES}
${HW_LINK_LIBS}
)