Splitted some unit tests to reduce memory consumption in compile time
[libcds.git] / test / unit / intrusive-list / CMakeLists.txt
1 include_directories(
2     ${CMAKE_CURRENT_SOURCE_DIR}
3 )
4
5 # intrusive::MichaelList
6 set(UNIT_ILIST_MICHAEL unit-ilist-michael)
7 set(UNIT_ILIST_MICHAEL_SOURCES
8     ../main.cpp
9     intrusive_michael_hp.cpp
10     intrusive_michael_dhp.cpp
11     intrusive_michael_nogc.cpp
12     intrusive_michael_rcu_gpb.cpp
13     intrusive_michael_rcu_gpi.cpp
14     intrusive_michael_rcu_gpt.cpp
15     intrusive_michael_rcu_shb.cpp
16     intrusive_michael_rcu_sht.cpp
17 )
18 add_executable(${UNIT_ILIST_MICHAEL} ${UNIT_ILIST_MICHAEL_SOURCES})
19 target_link_libraries(${UNIT_ILIST_MICHAEL} 
20     ${CDS_SHARED_LIBRARY}
21     ${GTEST_LIBRARY}
22     ${Boost_THREAD_LIBRARY}
23     ${Boost_SYSTEM_LIBRARY}
24     ${CMAKE_THREAD_LIBS_INIT}
25 )
26 add_test(NAME ${UNIT_ILIST_MICHAEL} COMMAND ${UNIT_ILIST_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
27
28 # intrusive::LazyList
29 set(UNIT_ILIST_LAZY unit-ilist-lazy)
30 set(UNIT_ILIST_LAZY_SOURCES
31     ../main.cpp
32     intrusive_lazy_hp.cpp
33     intrusive_lazy_dhp.cpp
34     intrusive_lazy_nogc.cpp
35     intrusive_lazy_rcu_gpb.cpp
36     intrusive_lazy_rcu_gpi.cpp
37     intrusive_lazy_rcu_gpt.cpp
38     intrusive_lazy_rcu_shb.cpp
39     intrusive_lazy_rcu_sht.cpp
40 )
41 add_executable(${UNIT_ILIST_LAZY} ${UNIT_ILIST_LAZY_SOURCES})
42 target_link_libraries(${UNIT_ILIST_LAZY} 
43     ${CDS_SHARED_LIBRARY}
44     ${GTEST_LIBRARY}
45     ${Boost_THREAD_LIBRARY}
46     ${Boost_SYSTEM_LIBRARY}
47     ${CMAKE_THREAD_LIBS_INIT}
48 )
49 add_test(NAME ${UNIT_ILIST_LAZY} COMMAND ${UNIT_ILIST_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
50
51 # intrusive::IterableList
52 set(UNIT_ILIST_ITERABLE unit-ilist-iterable)
53 set(UNIT_ILIST_ITERABLE_SOURCES
54     ../main.cpp
55     intrusive_iterable_hp.cpp
56     intrusive_iterable_dhp.cpp
57 )
58 add_executable(${UNIT_ILIST_ITERABLE} ${UNIT_ILIST_ITERABLE_SOURCES})
59 target_link_libraries(${UNIT_ILIST_ITERABLE} 
60     ${CDS_SHARED_LIBRARY}
61     ${GTEST_LIBRARY}
62     ${Boost_THREAD_LIBRARY}
63     ${Boost_SYSTEM_LIBRARY}
64     ${CMAKE_THREAD_LIBS_INIT}
65 )
66 add_test(NAME ${UNIT_ILIST_ITERABLE} COMMAND ${UNIT_ILIST_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
67
68
69 add_custom_target( unit-ilist
70     DEPENDS
71         ${UNIT_ILIST_ITERABLE}
72         ${UNIT_ILIST_LAZY}
73         ${UNIT_ILIST_MICHAEL}
74 )