-
-
Notifications
You must be signed in to change notification settings - Fork 421
/
CMakeLists.txt
128 lines (122 loc) · 3.13 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
120
121
122
123
124
125
126
127
128
# Copyright (c) 2014-2020 Hartmut Kaiser
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
set(tests
adjacentfind_bad_alloc_range
adjacentfind_binary_bad_alloc_range
adjacentfind_binary_range
adjacentfind_binary_projection_range
adjacentfind_binary_exception_range
adjacentfind_range
adjacentfind_exception_range
all_of_range
any_of_range
copy_range
copyn_range
copyif_range
count_range
countif_range
destroy_range
destroyn_range
distance
equal_range
equal_binary_range
fill_range
filln_range
find_range
find_if_range
find_if_not_range
find_if_not_exception_range
find_end_range
find_end_range2
find_first_of_range
find_first_of_range2
for_loop_range
for_loop_exception_range
for_loop_induction_range
for_loop_induction_async_range
for_loop_reduction_range
for_loop_reduction_async_range
for_loop_strided_range
foreach_adapt
foreach_range
foreach_range_projection
generate_range
includes_range
inplace_merge_range
is_heap_range
is_heap_until_range
is_partitioned_range
is_partitioned_projection_range
is_sorted_range
is_sorted_until_range
lexicographical_compare_range
make_heap_range
max_element_range
merge_range
min_element_range
minmax_element_range
mismatch_binary_range
mismatch_range
move_range
none_of_range
partition_range
partition_copy_range
reduce_range
remove_range
remove_if_range
remove_copy_range
remove_copy_if_range
replace_range
replace_copy_range
replace_copy_if_range
replace_if_range
reverse_range
reverse_copy_range
rotate_range
rotate_copy_range
search_range
searchn_range
set_difference_range
set_intersection_range
set_symmetric_difference_range
set_union_range
sort_range
stable_sort_range
transform_range
transform_range_binary
transform_range2
transform_range_binary2
transform_reduce_binary_bad_alloc_range
transform_reduce_binary_exception_range
transform_reduce_binary_range
transform_reduce_range
uninitialized_default_construct_range
uninitialized_default_constructn_range
uninitialized_move_range
uninitialized_move_n_range
unique_range
unique_copy_range
)
set(transform_range_binary_FLAGS COMPILE_FLAGS
-DHPX_HAVE_DEPRECATION_WARNINGS_V1_6=0
)
foreach(test ${tests})
set(sources ${test}.cpp)
set(${test}_PARAMETERS THREADS_PER_LOCALITY 4)
source_group("Source Files" FILES ${sources})
# add example executable
add_hpx_executable(
${test}_test INTERNAL_FLAGS
SOURCES ${sources} ${${test}_FLAGS}
EXCLUDE_FROM_ALL
HPX_PREFIX ${HPX_BUILD_PREFIX}
FOLDER "Tests/Unit/Modules/Parallelism/Algorithms/Container"
)
target_link_libraries(
${test}_test PRIVATE hpx_iterator_support_test_utilities
)
add_hpx_unit_test("modules.algorithms" ${test} ${${test}_PARAMETERS})
endforeach()