summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/code/CMakeLists.txt
blob: 2df704b83e0a394d19b924735f079c0315b826be (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

add_library(testlib_code_snippets OBJECT
    doc_src_qtqskip.cpp
    src_corelib_kernel_qtestsupport_core.cpp
)

target_link_libraries(testlib_code_snippets PRIVATE
    Qt::Core
    Qt::Test
)

if(QT_FEATURE_gui AND QT_FEATURE_sql)
    target_sources(testlib_code_snippets PRIVATE
        doc_src_qtestlib.cpp
    )
    target_link_libraries(testlib_code_snippets PUBLIC
        Qt::Gui
        Qt::Sql
    )
endif()

if(QT_FEATURE_widgets)
    target_sources(testlib_code_snippets PRIVATE
        doc_src_qtestevent.cpp
        doc_src_qtestevent.h
    )
    target_link_libraries(testlib_code_snippets PUBLIC
        Qt::Widgets
    )
endif()