From 43fe5b0b23ec20cf6356e2ab270f8866870eede5 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 1 Dec 2014 16:32:10 +0100 Subject: [PATCH] Enable video in unit tests when building with CMake. --- CMakeLists.txt | 5 +++++ coreapi/CMakeLists.txt | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f762ad8e..ac04dc879 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,6 +153,11 @@ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/config.h PROPERTIES GENE add_definitions(-DHAVE_CONFIG_H) +if(ENABLE_VIDEO) + add_definitions(-DVIDEO_ENABLED) +endif() + + add_subdirectory(coreapi) add_subdirectory(share) if(ENABLE_GTK_UI) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index e3bae9640..cb417a612 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -110,10 +110,6 @@ add_definitions( -DLIBLINPHONE_EXPORTS ) -if(ENABLE_VIDEO) - add_definitions(-DVIDEO_ENABLED) -endif() - set(LIBS ${LIBGCC} ${LIBMINGWEX}