-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
119 lines (98 loc) · 2.89 KB
/
CMakeLists.txt
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
# SPDX-License-Identifier: BSD-2-Clause
add_definitions(-DDATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" )
add_library(tokodon_test_static STATIC mockaccount.cpp)
target_link_libraries(tokodon_test_static PUBLIC tokodon_static)
ecm_add_test(posttest.cpp
TEST_NAME posttest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(timelinetest.cpp
TEST_NAME timelinetest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(profileeditortest.cpp
TEST_NAME profileeditortest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(searchtest.cpp
TEST_NAME searchtest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(conversationmodeltest.cpp
TEST_NAME conversationmodeltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(blurhashtest.cpp
TEST_NAME blurhashtest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(posteditortest.cpp
TEST_NAME posteditortest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(federationtooltest.cpp
TEST_NAME federationtooltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(iprulestooltest.cpp
TEST_NAME iprulestooltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(emailblocktooltest.cpp
TEST_NAME emailblocktooltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(announcementstest.cpp
TEST_NAME announcementstest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(customemojitest.cpp
TEST_NAME customemojitest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(rulesmodeltest.cpp
TEST_NAME rulesmodeltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(listsmodeltest.cpp
TEST_NAME listsmodeltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(polltimemodeltest.cpp
TEST_NAME polltimemodeltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(socialgraphmodeltest.cpp
TEST_NAME socialgraphmodeltest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(texthandlertest.cpp
TEST_NAME texthandlertest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
ecm_add_test(accounttest.cpp
TEST_NAME accounttest
LINK_LIBRARIES tokodon_test_static Qt::Test
NAME_PREFIX "tokodon-"
)
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT "$ENV{KDECI_BUILD}" STREQUAL "TRUE")
add_subdirectory(appiumtests)
endif()