Merge branch 'dev'
[libcds.git] / test / unit / striped-set / CMakeLists.txt
1 set(PACKAGE_NAME unit-striped-set)
2
3 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-offsetof -DCDSUNIT_ENABLE_BOOST_CONTAINER")
4
5 set(CDSGTEST_SET_SOURCES
6     ../main.cpp
7     cuckoo_set.cpp
8     intrusive_boost_avl_set.cpp
9     intrusive_boost_list.cpp
10     intrusive_boost_set.cpp
11     intrusive_boost_sg_set.cpp
12     intrusive_boost_slist.cpp
13     intrusive_boost_splay_set.cpp
14     intrusive_boost_treap_set.cpp
15     intrusive_boost_unordered_set.cpp
16     intrusive_cuckoo_set.cpp
17     set_boost_flatset.cpp
18     set_boost_list.cpp
19     set_boost_set.cpp
20     set_boost_slist.cpp
21     set_boost_stable_vector.cpp
22     set_boost_unordered_set.cpp
23     set_boost_vector.cpp
24     set_std_list.cpp
25     set_std_set.cpp
26     set_std_unordered_set.cpp
27     set_std_vector.cpp
28 )
29
30 include_directories(
31     ${CMAKE_CURRENT_SOURCE_DIR}
32 )
33
34 add_executable(${PACKAGE_NAME} ${CDSGTEST_SET_SOURCES})
35 target_link_libraries(${PACKAGE_NAME} 
36     ${CDS_SHARED_LIBRARY}
37     ${GTEST_LIBRARY}
38     ${Boost_THREAD_LIBRARY}
39     ${Boost_SYSTEM_LIBRARY}
40     ${CMAKE_THREAD_LIBS_INIT}
41 )
42
43 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})