c1c066d9d5e392b39c19687b174c8f9236fcaef8
[libcds.git] / test / unit / tree / CMakeLists.txt
1 set(PACKAGE_NAME unit-tree)
2
3 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-offsetof")
4  
5 set(CDSGTEST_TREE_SOURCES
6     ../main.cpp
7     ellen_bintree_update_desc_pool.cpp
8     ellen_bintree_map_hp.cpp
9     ellen_bintree_map_dhp.cpp
10     ellen_bintree_map_rcu_gpb.cpp
11     ellen_bintree_map_rcu_gpi.cpp
12     ellen_bintree_map_rcu_gpt.cpp
13     ellen_bintree_map_rcu_shb.cpp
14     ellen_bintree_map_rcu_sht.cpp
15     ellen_bintree_set_dhp.cpp
16     ellen_bintree_set_hp.cpp
17     ellen_bintree_set_rcu_gpb.cpp
18     ellen_bintree_set_rcu_gpi.cpp
19     ellen_bintree_set_rcu_gpt.cpp
20     ellen_bintree_set_rcu_shb.cpp
21     ellen_bintree_set_rcu_sht.cpp
22     intrusive_ellenbintree_hp.cpp
23     intrusive_ellenbintree_dhp.cpp
24     intrusive_ellenbintree_rcu_gpb.cpp
25     intrusive_ellenbintree_rcu_gpi.cpp
26     intrusive_ellenbintree_rcu_gpt.cpp
27     intrusive_ellenbintree_rcu_shb.cpp
28     intrusive_ellenbintree_rcu_sht.cpp
29 )
30
31 include_directories(
32     ${CMAKE_CURRENT_SOURCE_DIR}
33 )
34
35 add_executable(${PACKAGE_NAME} ${CDSGTEST_TREE_SOURCES})
36 target_link_libraries(${PACKAGE_NAME} 
37     ${CDS_SHARED_LIBRARY}
38     ${GTEST_LIBRARY}
39     ${Boost_THREAD_LIBRARY}
40     ${Boost_SYSTEM_LIBRARY}
41     ${CMAKE_THREAD_LIBS_INIT}
42 )
43
44 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})