blob: 7d102943994219b970ffec66cada64af7179bb64 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Generated from test.pro.
#####################################################################
## tst_qfactoryloader Test:
#####################################################################
qt_add_test(tst_qfactoryloader
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
SOURCES
../plugin1/plugininterface1.h
../plugin2/plugininterface2.h
../tst_qfactoryloader.cpp
PUBLIC_LIBRARIES
Qt::CorePrivate
)
## Scopes:
#####################################################################
# special case begin
if (NOT QT_FEATURE_library)
target_link_directories(tst_qfactoryloader PRIVATE "${CMAKE_CURRENT_BINARY_DIR}../bin")
endif()
# special case end
qt_extend_target(tst_qfactoryloader CONDITION NOT QT_FEATURE_library
PUBLIC_LIBRARIES
# Remove: L
# special case begin
# this part is handled as a special case above
# ../bin/
# special case end
)
if(ANDROID)
# special case begin
set_source_files_properties(
${CMAKE_CURRENT_BINARY_DIR}/../bin/libplugin1.so
PROPERTIES QT_RESOURCE_TARGET_DEPENDENCY plugin1
)
set_source_files_properties(
${CMAKE_CURRENT_BINARY_DIR}/../bin/libplugin2.so
PROPERTIES QT_RESOURCE_TARGET_DEPENDENCY plugin2
)
# Resources:
if (ANDROID)
set(qmake_libs_resource_files
bin/libplugin1_${CMAKE_ANDROID_ARCH_ABI}.so
bin/libplugin2_${CMAKE_ANDROID_ARCH_ABI}.so
)
else()
set(qmake_libs_resource_files
bin/libplugin1.so
bin/libplugin2.so
)
endif()
# special case end
qt_add_resource(tst_qfactoryloader "qmake_libs"
PREFIX
"android_test_data"
BASE
"${CMAKE_CURRENT_BINARY_DIR}/.."
FILES
${qmake_libs_resource_files}
)
endif()
|