Commit 932837c3 authored by Ghislain MARY's avatar Ghislain MARY

Add option to enable video when compiling using cmake.

parent e4dcb70b
cmake_minimum_required(VERSION 2.6)
project(LINPHONE C)
option(LINPHONE_ENABLE_VIDEO "Build linphone with video support." ON)
if(NOT ORTP_ROOT_DIR)
set(ORTP_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/oRTP)
endif()
......
......@@ -98,6 +98,10 @@ add_definitions(
-DLINPHONE_PLUGINS_DIR=""
)
if(LINPHONE_ENABLE_VIDEO)
add_definitions(-DVIDEO_ENABLED)
endif(LINPHONE_ENABLE_VIDEO)
if(WIN32)
add_definitions(
-DWINDOW_NATIVE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment