mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-01-23 04:14:32 +08:00
28 lines
1.2 KiB
CMake
28 lines
1.2 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
_qt_internal_test_expect_pass(test_plugin_shared_static_flavor
|
|
TESTNAME test_plugin_flavor_static
|
|
BUILD_OPTIONS
|
|
"-DPLUGIN_OPTIONS=STATIC"
|
|
"-DEXPECTED_PLUGIN_TARGET_TYPE=STATIC_LIBRARY")
|
|
|
|
_qt_internal_test_expect_pass(test_plugin_shared_static_flavor
|
|
TESTNAME test_plugin_flavor_shared
|
|
BUILD_OPTIONS
|
|
"-DPLUGIN_OPTIONS=SHARED"
|
|
"-DEXPECTED_PLUGIN_TARGET_TYPE=MODULE_LIBRARY")
|
|
|
|
if(QT6_IS_SHARED_LIBS_BUILD)
|
|
set(expected_plugin_target_type "MODULE_LIBRARY")
|
|
else()
|
|
set(expected_plugin_target_type "STATIC_LIBRARY")
|
|
endif()
|
|
|
|
# Check default computed value when no explicit option is set.
|
|
_qt_internal_test_expect_pass(test_plugin_shared_static_flavor
|
|
TESTNAME test_plugin_flavor_derived_from_qt_type
|
|
BUILD_OPTIONS
|
|
"-DPLUGIN_OPTIONS="
|
|
"-DEXPECTED_PLUGIN_TARGET_TYPE=${expected_plugin_target_type}")
|