2023-12-01 17:32:19 +00:00
|
|
|
# Copyright 2022 Google LLC. All rights reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
# Root-level CMake build file.
|
|
|
|
|
|
|
|
# Minimum CMake version. This must be in the root level CMakeLists.txt.
|
2024-02-14 21:59:18 +00:00
|
|
|
cmake_minimum_required(VERSION 3.24)
|
2023-12-01 17:32:19 +00:00
|
|
|
|
|
|
|
# These policy settings should be included before the project definition.
|
|
|
|
include("packager/policies.cmake")
|
|
|
|
|
|
|
|
# Project name. May not contain spaces. Versioning is managed elsewhere.
|
|
|
|
project(shaka-packager VERSION "")
|
|
|
|
|
|
|
|
# The only build option for Shaka Packager is whether to build a shared
|
|
|
|
# libpackager library. By default, don't.
|
|
|
|
option(BUILD_SHARED_LIBS "Build libpackager as a shared library" OFF)
|
|
|
|
|
|
|
|
# Enable CMake's test infrastructure.
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
option(SKIP_INTEGRATION_TESTS "Skip the packager integration tests" ON)
|
|
|
|
|
|
|
|
# Subdirectories with their own CMakeLists.txt
|
|
|
|
add_subdirectory(packager)
|
|
|
|
add_subdirectory(link-test)
|