aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/TelegramTests.cmake
blob: bcb83508fc27c27e7679783cdf45ad611c54332a (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
#find_package(catch REQUIRED)
set(catch_INCLUDE /usr/include/catch)

file(GLOB LIST_TESTS_PY gyp/tests/list_tests.py)
file(GLOB TESTS_LIST_TXT gyp/tests/tests_list.txt)

add_executable(tests_algorithm
	SourceFiles/base/algorithm_tests.cpp
	SourceFiles/base/tests_main.cpp
)

add_executable(tests_flags
	SourceFiles/base/flags_tests.cpp
	SourceFiles/base/tests_main.cpp
)

add_executable(tests_flat_map
	SourceFiles/base/flat_map_tests.cpp
	SourceFiles/base/tests_main.cpp
)

add_executable(tests_flat_set
	SourceFiles/base/flat_set_tests.cpp
	SourceFiles/base/tests_main.cpp
)

add_executable(tests_rpl
	SourceFiles/rpl/operators_tests.cpp
	SourceFiles/rpl/producer_tests.cpp
	SourceFiles/rpl/variable_tests.cpp
	SourceFiles/base/tests_main.cpp
)

target_link_libraries(tests_algorithm Qt5::Core)
target_link_libraries(tests_flags Qt5::Core)
target_link_libraries(tests_flat_map Qt5::Core)
target_link_libraries(tests_flat_set Qt5::Core)
target_link_libraries(tests_rpl Qt5::Core)

target_include_directories(tests_algorithm PUBLIC
	${catch_INCLUDE}
)
target_include_directories(tests_flags PUBLIC
	${catch_INCLUDE}
)
target_include_directories(tests_flat_map PUBLIC
	${catch_INCLUDE}
	${THIRD_PARTY_DIR}/GSL/include
	${THIRD_PARTY_DIR}/variant/include
)
target_include_directories(tests_flat_set PUBLIC
	${catch_INCLUDE}
)
target_include_directories(tests_rpl PUBLIC
	${catch_INCLUDE}
	${THIRD_PARTY_DIR}/GSL/include
	${THIRD_PARTY_DIR}/variant/include
)

enable_testing()
add_test(tests python ${LIST_TESTS_PY} --input ${TESTS_LIST_TXT})