aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcExportedNoFileNameTest/CMakeLists.txt
blob: 47f920129a06c9c97dabec79bf2b49ef164eb124 (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
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

qt_add_library(qmltc_exported_no_file_name_test_module STATIC)
qt_autogen_tools_initial_setup(qmltc_exported_no_file_name_test_module)

set(common_libraries
    Qt::QuickPrivate
)

target_link_libraries(qmltc_exported_no_file_name_test_module PUBLIC ${common_libraries})

qt_policy(SET QTP0001 NEW)

qt6_add_qml_module(qmltc_exported_no_file_name_test_module
    URI QmltcExportedNoFileNameTest
    QML_FILES
        HelloExportedWorldNoFileName.qml
    DEPENDENCIES
        Qt::Quick
    ENABLE_TYPE_COMPILER
    QMLTC_EXPORT_DIRECTIVE "Q_DECL_EXPORT"
    # explicitly omitting QMLTC_EXPORT_FILE_NAME
)

target_include_directories(qmltc_exported_no_file_name_test_module PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})

qt_autogen_tools_initial_setup(qmltc_exported_no_file_name_test_moduleplugin)