1fa7767c5Sopenharmony_ci# Copyright (c) 2022-2022 Huawei Device Co., Ltd. 2fa7767c5Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3fa7767c5Sopenharmony_ci# you may not use this file except in compliance with the License. 4fa7767c5Sopenharmony_ci# You may obtain a copy of the License at 5fa7767c5Sopenharmony_ci# 6fa7767c5Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7fa7767c5Sopenharmony_ci# 8fa7767c5Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9fa7767c5Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10fa7767c5Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11fa7767c5Sopenharmony_ci# See the License for the specific language governing permissions and 12fa7767c5Sopenharmony_ci# limitations under the License. 13fa7767c5Sopenharmony_ci 14fa7767c5Sopenharmony_ciCMAKE_MINIMUM_REQUIRED(VERSION 3.13...3.20) 15fa7767c5Sopenharmony_ci 16fa7767c5Sopenharmony_ciPROJECT(histreamer_new_tests) 17fa7767c5Sopenharmony_ci 18fa7767c5Sopenharmony_ciset(CMAKE_VERBOSE_MAKEFILE ON) 19fa7767c5Sopenharmony_ci 20fa7767c5Sopenharmony_ciset(TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..) 21fa7767c5Sopenharmony_ci 22fa7767c5Sopenharmony_ciinclude_directories( 23fa7767c5Sopenharmony_ci ${TOP_DIR}/../3rdparty/ohos/foundation/multimedia/media_lite/interfaces/innerkits 24fa7767c5Sopenharmony_ci ${TOP_DIR}/../3rdparty/ohos/foundation/multimedia/media_utils_lite/interfaces/kits 25fa7767c5Sopenharmony_ci ${TOP_DIR}/../3rdparty/gtest/include/gtest/internal/custom 26fa7767c5Sopenharmony_ci ${TOP_DIR}/interface 27fa7767c5Sopenharmony_ci ${TOP_DIR}/interface/inner_api 28fa7767c5Sopenharmony_ci ${TOP_DIR}/interface/inner_api/meta 29fa7767c5Sopenharmony_ci ${TOP_DIR}/tests/unittest/common/include 30fa7767c5Sopenharmony_ci ${TOP_DIR}/src 31fa7767c5Sopenharmony_ci ${TOP_DIR} 32fa7767c5Sopenharmony_ci) 33fa7767c5Sopenharmony_ci 34fa7767c5Sopenharmony_ci# Must comment out these two lines to compile standard player 35fa7767c5Sopenharmony_ci# But must uncomment them to compile histreamer_tests 36fa7767c5Sopenharmony_ci#unset(PLAYER_LITE CACHE) 37fa7767c5Sopenharmony_ci#option(PLAYER_LITE "tests should use player lite interface" ON) 38fa7767c5Sopenharmony_ci 39fa7767c5Sopenharmony_ciif (NOT MINGW) 40fa7767c5Sopenharmony_ci # support findSymbol, cmake >= 3.13 41fa7767c5Sopenharmony_ci # ADD_LINK_OPTIONS( -rdynamic) 42fa7767c5Sopenharmony_ciendif () 43fa7767c5Sopenharmony_ci 44fa7767c5Sopenharmony_ciSET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) 45fa7767c5Sopenharmony_ci 46fa7767c5Sopenharmony_ciADD_SUBDIRECTORY(unittest) 47