3f82d49782de924a4a668ce9f8ed0c6c21cdcc12
[libcds.git] / test / unit / list / CMakeLists.txt
1 set(PACKAGE_NAME unit-list)
2
3 set(CDSGTEST_LIST_SOURCES
4     ../main.cpp
5     intrusive_iterable_dhp.cpp
6     intrusive_iterable_hp.cpp
7     intrusive_lazy_hp.cpp
8     intrusive_lazy_dhp.cpp
9     intrusive_lazy_nogc.cpp
10     intrusive_lazy_rcu_gpb.cpp
11     intrusive_lazy_rcu_gpi.cpp
12     intrusive_lazy_rcu_gpt.cpp
13     intrusive_lazy_rcu_shb.cpp
14     intrusive_lazy_rcu_sht.cpp
15     intrusive_michael_hp.cpp
16     intrusive_michael_dhp.cpp
17     intrusive_michael_nogc.cpp
18     intrusive_michael_rcu_gpb.cpp
19     intrusive_michael_rcu_gpi.cpp
20     intrusive_michael_rcu_gpt.cpp
21     intrusive_michael_rcu_shb.cpp
22     intrusive_michael_rcu_sht.cpp
23     iterable_hp.cpp
24     iterable_dhp.cpp
25     kv_lazy_hp.cpp
26     kv_lazy_dhp.cpp
27     kv_lazy_nogc.cpp
28     kv_lazy_rcu_gpb.cpp
29     kv_lazy_rcu_gpi.cpp
30     kv_lazy_rcu_gpt.cpp
31     kv_lazy_rcu_shb.cpp
32     kv_lazy_rcu_sht.cpp
33     kv_michael_hp.cpp
34     kv_michael_dhp.cpp
35     kv_michael_nogc.cpp
36     kv_michael_rcu_gpb.cpp
37     kv_michael_rcu_gpi.cpp
38     kv_michael_rcu_gpt.cpp
39     kv_michael_rcu_shb.cpp
40     kv_michael_rcu_sht.cpp
41     lazy_hp.cpp
42     lazy_dhp.cpp
43     lazy_nogc.cpp
44     lazy_rcu_gpb.cpp
45     lazy_rcu_gpi.cpp
46     lazy_rcu_gpt.cpp
47     lazy_rcu_shb.cpp
48     lazy_rcu_sht.cpp
49     michael_hp.cpp
50     michael_dhp.cpp
51     michael_nogc.cpp
52     michael_rcu_gpb.cpp
53     michael_rcu_gpi.cpp
54     michael_rcu_gpt.cpp
55     michael_rcu_shb.cpp
56     michael_rcu_sht.cpp
57 )
58
59 include_directories(
60     ${CMAKE_CURRENT_SOURCE_DIR}
61 )
62
63 add_executable(${PACKAGE_NAME} ${CDSGTEST_LIST_SOURCES})
64 target_link_libraries(${PACKAGE_NAME} 
65     ${CDS_SHARED_LIBRARY}
66     ${GTEST_LIBRARY}
67     ${Boost_THREAD_LIBRARY}
68     ${Boost_SYSTEM_LIBRARY}
69     ${CMAKE_THREAD_LIBS_INIT}
70 )
71
72 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})