fixed adding file problem
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / demo / dependencies / libcds-2.3.2 / 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 )
17 add_executable(${UNIT_ILIST_MICHAEL} ${UNIT_ILIST_MICHAEL_SOURCES})
18 target_link_libraries(${UNIT_ILIST_MICHAEL} ${CDS_TEST_LIBRARIES})
19
20 add_test(NAME ${UNIT_ILIST_MICHAEL} COMMAND ${UNIT_ILIST_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
21
22 # intrusive::LazyList
23 set(UNIT_ILIST_LAZY unit-ilist-lazy)
24 set(UNIT_ILIST_LAZY_SOURCES
25     ../main.cpp
26     intrusive_lazy_hp.cpp
27     intrusive_lazy_dhp.cpp
28     intrusive_lazy_nogc.cpp
29     intrusive_lazy_rcu_gpb.cpp
30     intrusive_lazy_rcu_gpi.cpp
31     intrusive_lazy_rcu_gpt.cpp
32     intrusive_lazy_rcu_shb.cpp
33 )
34 add_executable(${UNIT_ILIST_LAZY} ${UNIT_ILIST_LAZY_SOURCES})
35 target_link_libraries(${UNIT_ILIST_LAZY} ${CDS_TEST_LIBRARIES})
36 add_test(NAME ${UNIT_ILIST_LAZY} COMMAND ${UNIT_ILIST_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
37
38 # intrusive::IterableList
39 set(UNIT_ILIST_ITERABLE unit-ilist-iterable)
40 set(UNIT_ILIST_ITERABLE_SOURCES
41     ../main.cpp
42     intrusive_iterable_hp.cpp
43     intrusive_iterable_dhp.cpp
44 )
45 add_executable(${UNIT_ILIST_ITERABLE} ${UNIT_ILIST_ITERABLE_SOURCES})
46 target_link_libraries(${UNIT_ILIST_ITERABLE} ${CDS_TEST_LIBRARIES})
47 add_test(NAME ${UNIT_ILIST_ITERABLE} COMMAND ${UNIT_ILIST_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
48
49
50 add_custom_target( unit-ilist
51     DEPENDS
52         ${UNIT_ILIST_ITERABLE}
53         ${UNIT_ILIST_LAZY}
54         ${UNIT_ILIST_MICHAEL}
55 )