| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
|
| 4 |
include(${PROJECT_SOURCE_DIR}/tests/auto/core/common/common.cmake) |
| 5 |
|
| 6 |
function(qt3d_setup_common_render_test target) |
| 7 |
cmake_parse_arguments(args "USE_TEST_ASPECT" "" "" ${ARGN}) |
| 8 |
set(commonDir ${PROJECT_SOURCE_DIR}/tests/auto/core/common) |
| 9 |
set(commonsDir ${PROJECT_SOURCE_DIR}/tests/auto/render/commons) |
| 10 |
target_sources(${target} PRIVATE ${commonsDir}/testrenderer.h ${commonsDir}/testrenderer.cpp) |
| 11 |
if (args_USE_TEST_ASPECT) |
| 12 |
target_sources(${target} PRIVATE ${commonsDir}/testaspect.h ${commonsDir}/testaspect.cpp) |
| 13 |
endif() |
| 14 |
target_include_directories(${target} PRIVATE ${commonsDir}) |
| 15 |
|
| 16 |
qt3d_setup_common_test(${target}) |
| 17 |
endfunction() |