Moved unit test for append-only key/value list 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_lazy_nogc.cpp
24     kv_michael_hp.cpp
25     kv_michael_dhp.cpp
26     kv_michael_nogc.cpp
27     lazy_hp.cpp
28     lazy_dhp.cpp
29     lazy_nogc.cpp
30     lazy_rcu_gpb.cpp
31     lazy_rcu_gpi.cpp
32     lazy_rcu_gpt.cpp
33     lazy_rcu_shb.cpp
34     lazy_rcu_sht.cpp
35     michael_hp.cpp
36     michael_dhp.cpp
37     michael_nogc.cpp
38     michael_rcu_gpb.cpp
39     michael_rcu_gpi.cpp
40     michael_rcu_gpt.cpp
41     michael_rcu_shb.cpp
42     michael_rcu_sht.cpp
43 )
44
45 include_directories(
46     ${CMAKE_CURRENT_SOURCE_DIR}
47 )
48
49 add_executable(${PACKAGE_NAME} ${CDSGTEST_LIST_SOURCES})
50 target_link_libraries(${PACKAGE_NAME} 
51     ${CDS_SHARED_LIBRARY}
52     ${GTEST_LIBRARY}
53     ${Boost_THREAD_LIBRARY}
54     ${Boost_SYSTEM_LIBRARY}
55     ${CMAKE_THREAD_LIBS_INIT}
56 )
57
58 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})