blob: ee913f63f62b686c9fc25eeb210eb4f80373c251 [file] [log] [blame]
## Copyright (c) 2015 The WebM project authors. All Rights Reserved.
##
## Use of this source code is governed by a BSD-style license
## that can be found in the LICENSE file in the root of the source
## tree. An additional intellectual property rights grant can be found
## in the file PATENTS. All contributing project authors may
## be found in the AUTHORS file in the root of the source tree.
cmake_minimum_required(VERSION 2.8)
project(WEBMTOOLS)
set(WEBMTOOLS_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
# TODO(tomfinegan): The libwebm source directory must be configurable.
set(LIBWEBM_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../libwebm")
# This is where LIBWEBM targets are built.
set(LIBWEBM_BUILD_DIR "${CMAKE_BINARY_DIR}/libwebm_build")
# Libwebm section.
# Add the libwebm CMakeLists.txt and set the binary dir to allow access to
# libwebm build output.
add_subdirectory("${LIBWEBM_SRC_DIR}" "${LIBWEBM_BUILD_DIR}")
include_directories("${LIBWEBM_SRC_DIR}"
"${WEBMTOOLS_SRC_DIR}/shared")