[CI] Changed CMake scripts for tests
[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} ${CDS_TEST_LIBRARIES})
20
21 add_test(NAME ${UNIT_ILIST_MICHAEL} COMMAND ${UNIT_ILIST_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
22
23 # intrusive::LazyList
24 set(UNIT_ILIST_LAZY unit-ilist-lazy)
25 set(UNIT_ILIST_LAZY_SOURCES
26     ../main.cpp
27     intrusive_lazy_hp.cpp
28     intrusive_lazy_dhp.cpp
29     intrusive_lazy_nogc.cpp
30     intrusive_lazy_rcu_gpb.cpp
31     intrusive_lazy_rcu_gpi.cpp
32     intrusive_lazy_rcu_gpt.cpp
33     intrusive_lazy_rcu_shb.cpp
34     intrusive_lazy_rcu_sht.cpp
35 )
36 add_executable(${UNIT_ILIST_LAZY} ${UNIT_ILIST_LAZY_SOURCES})
37 target_link_libraries(${UNIT_ILIST_LAZY} ${CDS_TEST_LIBRARIES})
38 add_test(NAME ${UNIT_ILIST_LAZY} COMMAND ${UNIT_ILIST_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
39
40 # intrusive::IterableList
41 set(UNIT_ILIST_ITERABLE unit-ilist-iterable)
42 set(UNIT_ILIST_ITERABLE_SOURCES
43     ../main.cpp
44     intrusive_iterable_hp.cpp
45     intrusive_iterable_dhp.cpp
46 )
47 add_executable(${UNIT_ILIST_ITERABLE} ${UNIT_ILIST_ITERABLE_SOURCES})
48 target_link_libraries(${UNIT_ILIST_ITERABLE} ${CDS_TEST_LIBRARIES})
49 add_test(NAME ${UNIT_ILIST_ITERABLE} COMMAND ${UNIT_ILIST_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
50
51
52 add_custom_target( unit-ilist
53     DEPENDS
54         ${UNIT_ILIST_ITERABLE}
55         ${UNIT_ILIST_LAZY}
56         ${UNIT_ILIST_MICHAEL}
57 )