summaryrefslogtreecommitdiffstats
path: root/tests/auto/qnearfieldtagtype2/CMakeLists.txt
blob: cc6d6f3226c90fca2401d02b455067ae132a4878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
    cmake_minimum_required(VERSION 3.16)
    project(tst_qnearfieldtagtype2 LANGUAGES CXX)
    find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()

if (NOT QT_FEATURE_private_tests)
    return()
endif()

#####################################################################
## tst_qnearfieldtagtype2 Test:
#####################################################################

# Collect test data
list(APPEND test_data "nfcdata/Dynamic Empty Tag.nfc")
list(APPEND test_data "nfcdata/Empty Tag.nfc")

qt_internal_add_test(tst_qnearfieldtagtype2
    SOURCES
        ../nfccommons/qnearfieldtarget_emulator.cpp ../nfccommons/qnearfieldtarget_emulator_p.h
        ../nfccommons/targetemulator.cpp ../nfccommons/targetemulator_p.h
        ../nfccommons/qnearfieldtagtype1.cpp ../nfccommons/qnearfieldtagtype1_p.h
        ../nfccommons/qnearfieldtagtype2.cpp ../nfccommons/qnearfieldtagtype2_p.h
        ../nfccommons/qtlv.cpp ../nfccommons/qtlv_p.h
        tst_qnearfieldtagtype2.cpp
    DEFINES
        SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/nfcdata"
    INCLUDE_DIRECTORIES
        ../nfccommons
    LIBRARIES
        Qt::NfcPrivate
    TESTDATA ${test_data}
)

#### Keys ignored in scope 1:.:.:qnearfieldtagtype2.pro:<TRUE>:
# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)"

## Scopes:
#####################################################################

qt_internal_extend_target(tst_qnearfieldtagtype2 CONDITION builtin_testdata
    DEFINES
        BUILTIN_TESTDATA
)