Fix tst_qlibrary by telling CMake about required libraries

tst_qlibraries needs to test libraries to be built in order to run
successfully. However, these libraries were not mentioned as
dependencies in CMake.
This patch fixes that.

Fixes: QTBUG-88445
Change-Id: Ic335e46664edd98217bd55a9bca5a58a39cffe66
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit f9d172f5a191a4e0e13923a6a1d31e86107bc75e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Andreas Buhr 2020-11-23 11:42:26 +01:00 committed by Qt Cherry-pick Bot
parent c11c9e52b4
commit 9abc84a131

View File

@ -12,6 +12,7 @@ qt_internal_add_test(tst_qlibrary
SOURCES
../tst_qlibrary.cpp
TESTDATA ${test_data}
LIBRARIES mylib mylib2 # special case
)
## Scopes: