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}