| 1 |
# Copyright (C) 2024 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
|
| 4 |
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) |
| 5 |
cmake_minimum_required(VERSION 3.16) |
| 6 |
project(tst_qsbdepfiles LANGUAGES CXX) |
| 7 |
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) |
| 8 |
endif() |
| 9 |
|
| 10 |
qt_internal_add_test(tst_qsbdepfiles |
| 11 |
SOURCES |
| 12 |
tst_qsbdepfiles.cpp |
| 13 |
) |
| 14 |
|
| 15 |
qt_add_shaders(tst_qsbdepfiles |
| 16 |
"shaders" |
| 17 |
PRECOMPILE |
| 18 |
OPTIMIZED |
| 19 |
PREFIX |
| 20 |
"/" |
| 21 |
FILES |
| 22 |
"shaders/tst.frag" |
| 23 |
"shaders/tstinclude.frag" |
| 24 |
"shaders/tstincluderelative.frag" |
| 25 |
"shaders/tstincludewhitespaces.frag" |
| 26 |
"shaders/tstincludecomment.frag" |
| 27 |
) |
| 28 |
|
| 29 |
set(data_base_dir "${CMAKE_CURRENT_BINARY_DIR}/data") |
| 30 |
|
| 31 |
configure_file("data/tst.frag.qsb.d.in" |
| 32 |
"${data_base_dir}/tst.frag.qsb.d" NEWLINE_STYLE LF) |
| 33 |
configure_file("data/tstinclude.frag.qsb.d.in" |
| 34 |
"${data_base_dir}/tstinclude.frag.qsb.d" NEWLINE_STYLE LF) |
| 35 |
configure_file("data/tstincluderelative.frag.qsb.d.in" |
| 36 |
"${data_base_dir}/tstincluderelative.frag.qsb.d" NEWLINE_STYLE LF) |
| 37 |
configure_file("data/tstincludewhitespaces.frag.qsb.d.in" |
| 38 |
"${data_base_dir}/tstincludewhitespaces.frag.qsb.d" NEWLINE_STYLE LF) |
| 39 |
configure_file("data/tstincludecomment.frag.qsb.d.in" |
| 40 |
"${data_base_dir}/tstincludecomment.frag.qsb.d" NEWLINE_STYLE LF) |
| 41 |
|
| 42 |
qt_add_resources(tst_qsbdepfiles "tst_qsbdepfiles_data" |
| 43 |
PREFIX "/data" |
| 44 |
BASE "${data_base_dir}" |
| 45 |
FILES |
| 46 |
"${data_base_dir}/tst.frag.qsb.d" |
| 47 |
"${data_base_dir}/tstinclude.frag.qsb.d" |
| 48 |
"${data_base_dir}/tstincluderelative.frag.qsb.d" |
| 49 |
"${data_base_dir}/tstincludewhitespaces.frag.qsb.d" |
| 50 |
"${data_base_dir}/tstincludecomment.frag.qsb.d" |
| 51 |
) |
| 52 |
|