--- a/QTfrontend/CMakeLists.txt Thu Oct 25 01:16:13 2012 +0200
+++ b/QTfrontend/CMakeLists.txt Thu Oct 25 05:06:00 2012 +0200
@@ -28,7 +28,9 @@
# Configure for SDL
find_package(SDL REQUIRED)
find_package(SDL_mixer REQUIRED)
-find_package(FFMPEG)
+if(NOT NOVIDEOREC)
+ find_package(FFMPEG)
+endif()
include_directories(.)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model)
@@ -73,7 +75,7 @@
file(GLOB_RECURSE UIcpp ui/*.cpp)
file(GLOB UtilCpp util/*.cpp)
-if((NOT NOVIDEOREC) AND "${FFMPEG_FOUND}")
+if(${FFMPEG_FOUND})
add_definitions(-DVIDEOREC -D__STDC_CONSTANT_MACROS)
endif()