2022-07-05 11:26:52 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-19 13:21:34 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 11:26:52 +00:00
|
|
|
|
2019-09-09 06:08:43 +00:00
|
|
|
# Collect test data
|
|
|
|
file(GLOB_RECURSE test_data_glob
|
|
|
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
2019-11-12 12:03:07 +00:00
|
|
|
testdata/*)
|
2019-09-09 06:08:43 +00:00
|
|
|
list(APPEND test_data ${test_data_glob})
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_test(tst_qmake
|
2019-09-09 06:08:43 +00:00
|
|
|
SOURCES
|
|
|
|
testcompiler.cpp testcompiler.h
|
|
|
|
tst_qmake.cpp
|
|
|
|
TESTDATA ${test_data}
|
|
|
|
)
|
|
|
|
|
2022-02-07 17:07:56 +00:00
|
|
|
set(dependencies
|
|
|
|
Qt::moc
|
|
|
|
Qt::qmake
|
|
|
|
)
|
|
|
|
if(TARGET Qt::Gui)
|
|
|
|
list(APPEND dependencies Qt::Gui)
|
|
|
|
endif()
|
|
|
|
if(TARGET Qt::Widgets)
|
|
|
|
list(APPEND dependencies Qt::Widgets)
|
|
|
|
endif()
|
|
|
|
if(TARGET Qt::rcc)
|
|
|
|
list(APPEND dependencies Qt::rcc)
|
|
|
|
endif()
|
|
|
|
if(TARGET Qt::uic)
|
|
|
|
list(APPEND dependencies Qt::uic)
|
|
|
|
endif()
|
|
|
|
# Add dependencies that are implicitly used inside the test
|
|
|
|
add_dependencies(tst_qmake ${dependencies})
|