add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/third_party/webrtc/src")

set(ERIZO_CMAKE_CXX_FLAGS "${ERIZO_CMAKE_CXX_FLAGS} -DWEBRTC_POSIX")

IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  set(ERIZO_CMAKE_CXX_FLAGS "${ERIZO_CMAKE_CXX_FLAGS}  -fno-stack-protector -DWEBRTC_MAC")
ELSE()
  set(ERIZO_CMAKE_CXX_FLAGS "${ERIZO_CMAKE_CXX_FLAGS} -Werror -fPIC -DWEBRTC_LINUX")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
