Moved queue unit tests to gtest framework
[libcds.git] / test / unit / queue / CMakeLists.txt
1 set(PACKAGE_NAME unit-queue)
2
3 set(CDSGTEST_QUEUE_SOURCES
4     ../main.cpp
5     basket_queue_hp.cpp
6     basket_queue_dhp.cpp
7     fcqueue.cpp
8     moirqueue_hp.cpp
9     moirqueue_dhp.cpp
10     msqueue_hp.cpp
11     msqueue_dhp.cpp
12     optimistic_queue_hp.cpp
13     optimistic_queue_dhp.cpp
14     rwqueue.cpp
15     segmented_queue_hp.cpp
16     segmented_queue_dhp.cpp
17     tsigas_queue.cpp
18     vyukov_mpmc_queue.cpp
19     intrusive_basket_queue_hp.cpp
20     intrusive_basket_queue_dhp.cpp
21     intrusive_fcqueue.cpp
22     intrusive_msqueue_hp.cpp
23     intrusive_msqueue_dhp.cpp
24     intrusive_moirqueue_hp.cpp
25     intrusive_moirqueue_dhp.cpp
26     intrusive_optqueue_hp.cpp
27     intrusive_optqueue_dhp.cpp
28     intrusive_segmented_queue_hp.cpp
29     intrusive_segmented_queue_dhp.cpp
30 )
31
32 include_directories(
33     ${CMAKE_CURRENT_SOURCE_DIR}
34 )
35
36 add_executable(${PACKAGE_NAME} ${CDSGTEST_QUEUE_SOURCES})
37 target_link_libraries(${PACKAGE_NAME} 
38     ${CDS_SHARED_LIBRARY}
39     ${GTEST_LIBRARY}
40     ${Boost_THREAD_LIBRARY}
41     ${Boost_SYSTEM_LIBRARY}
42     ${CMAKE_THREAD_LIBS_INIT}
43 )
44
45 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})