# Copyright 2017-2021 The Khronos Group Inc. # SPDX-License-Identifier: Apache-2.0 add_executable( streamtests streamtests.cc ../tests.cmake ) set_test_properties(streamtests) set_code_sign(streamtests) target_compile_features( streamtests PUBLIC cxx_std_20 ) target_include_directories( streamtests PRIVATE $ $ ${CMAKE_CURRENT_SOURCE_DIR}/../../other_include ${CMAKE_CURRENT_SOURCE_DIR}/../../lib/src # Just for gl_format.h ) target_link_libraries( streamtests gtest ktx "$<${is_stdformat_unsupported}:fmt::fmt>" ${CMAKE_THREAD_LIBS_INIT} ) target_compile_definitions( streamtests PRIVATE $ ) gtest_discover_tests( streamtests TEST_PREFIX streamtest. # With the 5s default we get periodic timeouts on Travis & GitHub CI. DISCOVERY_TIMEOUT 20 EXTRA_ARGS "${PROJECT_SOURCE_DIR}/tests/resources/" )