Moved HP-based KV-list unit test to gtest framework
[libcds.git] / test / unit / list / CMakeLists.txt
1 set(PACKAGE_NAME unit-list)
2
3 set(CDSGTEST_LIST_SOURCES
4     ../main.cpp
5     intrusive_lazy_hp.cpp
6     intrusive_lazy_dhp.cpp
7     intrusive_lazy_nogc.cpp
8     intrusive_lazy_rcu_gpb.cpp
9     intrusive_lazy_rcu_gpi.cpp
10     intrusive_lazy_rcu_gpt.cpp
11     intrusive_lazy_rcu_shb.cpp
12     intrusive_lazy_rcu_sht.cpp
13     intrusive_michael_hp.cpp
14     intrusive_michael_dhp.cpp
15     intrusive_michael_nogc.cpp
16     intrusive_michael_rcu_gpb.cpp
17     intrusive_michael_rcu_gpi.cpp
18     intrusive_michael_rcu_gpt.cpp
19     intrusive_michael_rcu_shb.cpp
20     intrusive_michael_rcu_sht.cpp
21     kv_lazy_hp.cpp
22     kv_lazy_dhp.cpp
23     kv_michael_hp.cpp
24     kv_michael_dhp.cpp
25     lazy_hp.cpp
26     lazy_dhp.cpp
27     lazy_nogc.cpp
28     lazy_rcu_gpb.cpp
29     lazy_rcu_gpi.cpp
30     lazy_rcu_gpt.cpp
31     lazy_rcu_shb.cpp
32     lazy_rcu_sht.cpp
33     michael_hp.cpp
34     michael_dhp.cpp
35     michael_nogc.cpp
36     michael_rcu_gpb.cpp
37     michael_rcu_gpi.cpp
38     michael_rcu_gpt.cpp
39     michael_rcu_shb.cpp
40     michael_rcu_sht.cpp
41 )
42
43 include_directories(
44     ${CMAKE_CURRENT_SOURCE_DIR}
45 )
46
47 add_executable(${PACKAGE_NAME} ${CDSGTEST_LIST_SOURCES})
48 target_link_libraries(${PACKAGE_NAME} 
49     ${CDS_SHARED_LIBRARY}
50     ${GTEST_LIBRARY}
51     ${Boost_THREAD_LIBRARY}
52     ${Boost_SYSTEM_LIBRARY}
53     ${CMAKE_THREAD_LIBS_INIT}
54 )
55
56 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})