ad887533846adf966fa97b556b2237294232ee27
[libcds.git] / tests / test-hdr / CMakeLists.txt
1 set(PACKAGE_NAME test-hdr)\r
2 \r
3 set(CDS_TESTHDR_MAP\r
4     map/hdr_michael_map_hp.cpp\r
5     map/hdr_michael_map_dhp.cpp\r
6     map/hdr_michael_map_rcu_gpi.cpp\r
7     map/hdr_michael_map_rcu_gpb.cpp\r
8     map/hdr_michael_map_rcu_gpt.cpp\r
9     map/hdr_michael_map_rcu_shb.cpp\r
10     map/hdr_michael_map_rcu_sht.cpp\r
11     map/hdr_michael_map_nogc.cpp\r
12     map/hdr_michael_map_lazy_hp.cpp\r
13     map/hdr_michael_map_lazy_dhp.cpp\r
14     map/hdr_michael_map_lazy_rcu_gpi.cpp\r
15     map/hdr_michael_map_lazy_rcu_gpb.cpp\r
16     map/hdr_michael_map_lazy_rcu_gpt.cpp\r
17     map/hdr_michael_map_lazy_rcu_shb.cpp\r
18     map/hdr_michael_map_lazy_rcu_sht.cpp\r
19     map/hdr_michael_map_lazy_nogc.cpp\r
20     map/hdr_feldman_hashmap_hp.cpp\r
21     map/hdr_feldman_hashmap_dhp.cpp\r
22     map/hdr_feldman_hashmap_rcu_gpb.cpp\r
23     map/hdr_feldman_hashmap_rcu_gpi.cpp\r
24     map/hdr_feldman_hashmap_rcu_gpt.cpp\r
25     map/hdr_feldman_hashmap_rcu_shb.cpp\r
26     map/hdr_feldman_hashmap_rcu_sht.cpp\r
27     map/hdr_refinable_hashmap_hashmap_std.cpp\r
28     map/hdr_refinable_hashmap_boost_list.cpp\r
29     map/hdr_refinable_hashmap_list.cpp\r
30     map/hdr_refinable_hashmap_map.cpp\r
31     map/hdr_refinable_hashmap_boost_map.cpp\r
32     map/hdr_refinable_hashmap_boost_flat_map.cpp\r
33     map/hdr_refinable_hashmap_boost_unordered_map.cpp\r
34     map/hdr_refinable_hashmap_slist.cpp\r
35     map/hdr_skiplist_map_hp.cpp\r
36     map/hdr_skiplist_map_dhp.cpp\r
37     map/hdr_skiplist_map_rcu_gpi.cpp\r
38     map/hdr_skiplist_map_rcu_gpb.cpp\r
39     map/hdr_skiplist_map_rcu_gpt.cpp\r
40     map/hdr_skiplist_map_rcu_shb.cpp\r
41     map/hdr_skiplist_map_rcu_sht.cpp\r
42     map/hdr_skiplist_map_nogc.cpp\r
43     map/hdr_splitlist_map_hp.cpp\r
44     map/hdr_splitlist_map_dhp.cpp\r
45     map/hdr_splitlist_map_nogc.cpp\r
46     map/hdr_splitlist_map_rcu_gpi.cpp\r
47     map/hdr_splitlist_map_rcu_gpb.cpp\r
48     map/hdr_splitlist_map_rcu_gpt.cpp\r
49     map/hdr_splitlist_map_rcu_shb.cpp\r
50     map/hdr_splitlist_map_rcu_sht.cpp\r
51     map/hdr_splitlist_map_lazy_hp.cpp\r
52     map/hdr_splitlist_map_lazy_dhp.cpp\r
53     map/hdr_splitlist_map_lazy_nogc.cpp\r
54     map/hdr_splitlist_map_lazy_rcu_gpi.cpp\r
55     map/hdr_splitlist_map_lazy_rcu_gpb.cpp\r
56     map/hdr_splitlist_map_lazy_rcu_gpt.cpp\r
57     map/hdr_splitlist_map_lazy_rcu_sht.cpp\r
58     map/hdr_splitlist_map_lazy_rcu_shb.cpp\r
59     map/hdr_striped_hashmap_hashmap_std.cpp\r
60     map/hdr_striped_hashmap_boost_list.cpp\r
61     map/hdr_striped_hashmap_list.cpp\r
62     map/hdr_striped_hashmap_map.cpp\r
63     map/hdr_striped_hashmap_boost_map.cpp\r
64     map/hdr_striped_hashmap_boost_flat_map.cpp\r
65     map/hdr_striped_hashmap_boost_unordered_map.cpp\r
66     map/hdr_striped_hashmap_slist.cpp\r
67     map/hdr_striped_map_reg.cpp)\r
68 \r
69 set(CDS_TESTHDR_TREE\r
70     tree/hdr_tree_reg.cpp
71     tree/hdr_intrusive_ellen_bintree_hp.cpp
72     tree/hdr_intrusive_ellen_bintree_dhp.cpp
73     tree/hdr_intrusive_ellen_bintree_rcu_gpb.cpp
74     tree/hdr_intrusive_ellen_bintree_rcu_gpi.cpp
75     tree/hdr_intrusive_ellen_bintree_rcu_gpt.cpp
76     tree/hdr_intrusive_ellen_bintree_rcu_shb.cpp
77     tree/hdr_intrusive_ellen_bintree_rcu_sht.cpp
78     tree/hdr_ellenbintree_map_hp.cpp
79     tree/hdr_ellenbintree_map_dhp.cpp
80     tree/hdr_ellenbintree_map_rcu_gpb.cpp
81     tree/hdr_ellenbintree_map_rcu_gpi.cpp
82     tree/hdr_ellenbintree_map_rcu_gpt.cpp
83     tree/hdr_ellenbintree_map_rcu_shb.cpp
84     tree/hdr_ellenbintree_map_rcu_sht.cpp
85     tree/hdr_ellenbintree_set_hp.cpp
86     tree/hdr_ellenbintree_set_dhp.cpp
87     tree/hdr_ellenbintree_set_rcu_gpb.cpp
88     tree/hdr_ellenbintree_set_rcu_gpi.cpp
89     tree/hdr_ellenbintree_set_rcu_gpt.cpp
90     tree/hdr_ellenbintree_set_rcu_shb.cpp
91     tree/hdr_ellenbintree_set_rcu_sht.cpp
92     tree/hdr_bronson_avltree_map_rcu_gpb.cpp
93     tree/hdr_bronson_avltree_map_rcu_gpb_pool_monitor.cpp
94     tree/hdr_bronson_avltree_map_rcu_gpi.cpp
95     tree/hdr_bronson_avltree_map_rcu_gpi_pool_monitor.cpp
96     tree/hdr_bronson_avltree_map_rcu_gpt.cpp
97     tree/hdr_bronson_avltree_map_rcu_gpt_pool_monitor.cpp
98     tree/hdr_bronson_avltree_map_rcu_shb.cpp
99     tree/hdr_bronson_avltree_map_rcu_shb_pool_monitor.cpp
100     tree/hdr_bronson_avltree_map_rcu_sht.cpp
101     tree/hdr_bronson_avltree_map_rcu_sht_pool_monitor.cpp
102    )
103
104 set(CDS_TESTHDR_MISC\r
105     misc/cxx11_atomic_class.cpp\r
106     misc/cxx11_atomic_func.cpp\r
107     misc/find_option.cpp\r
108     misc/allocator_test.cpp\r
109     misc/michael_allocator.cpp\r
110     misc/hash_tuple.cpp\r
111     misc/bitop_st.cpp\r
112     misc/split_bitstring.cpp\r
113     misc/permutation_generator.cpp\r
114     misc/thread_init_fini.cpp)\r
115 \r
116 set(CDS_TESTHDR_OFFSETOF_MAP\r
117     map/hdr_cuckoo_map.cpp)\r
118 \r
119 set(CDS_TESTHDR_OFFSETOF_TREE\r
120     tree/hdr_intrusive_ellen_bintree_hp_member.cpp\r
121     tree/hdr_intrusive_ellen_bintree_dhp_member.cpp\r
122     tree/hdr_intrusive_ellen_bintree_rcu_gpb_member.cpp\r
123     tree/hdr_intrusive_ellen_bintree_rcu_gpi_member.cpp\r
124     tree/hdr_intrusive_ellen_bintree_rcu_gpt_member.cpp\r
125     tree/hdr_intrusive_ellen_bintree_rcu_shb_member.cpp\r
126     tree/hdr_intrusive_ellen_bintree_rcu_sht_member.cpp)\r
127 \r
128 set(CDS_TESTHDR_OFFSETOF_SOURCES\r
129         ${CDS_TESTHDR_OFFSETOF_MAP}\r
130         ${CDS_TESTHDR_OFFSETOF_TREE})\r
131 \r
132 add_library(test-hdr-offsetof OBJECT ${CDS_TESTHDR_OFFSETOF_SOURCES})\r
133 \r
134 if(CMAKE_COMPILER_IS_GNUCC)\r
135   set_property(TARGET test-hdr-offsetof APPEND_STRING PROPERTY COMPILE_FLAGS -Wno-invalid-offsetof)\r
136 endif(CMAKE_COMPILER_IS_GNUCC)\r
137 \r
138 set(CDS_TESTHDR_SOURCES\r
139     ${CDS_TESTHDR_MAP}\r
140     ${CDS_TESTHDR_TREE}\r
141     ${CDS_TESTHDR_MISC})\r
142 \r
143 add_executable(${PACKAGE_NAME} ${CDS_TESTHDR_SOURCES} $<TARGET_OBJECTS:test-hdr-offsetof> $<TARGET_OBJECTS:${TEST_COMMON}>)\r
144 target_link_libraries(${PACKAGE_NAME} ${CDS_SHARED_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})\r
145 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})