Migrated intrusive EllenBinTree<RCU> to gtest
[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     intrusive_ellenbintree_hp.cpp
8     intrusive_ellenbintree_dhp.cpp
9     intrusive_ellenbintree_rcu_gpb.cpp
10     intrusive_ellenbintree_rcu_gpi.cpp
11     intrusive_ellenbintree_rcu_gpt.cpp
12     intrusive_ellenbintree_rcu_shb.cpp
13     intrusive_ellenbintree_rcu_sht.cpp
14 )
15
16 include_directories(
17     ${CMAKE_CURRENT_SOURCE_DIR}
18 )
19
20 add_executable(${PACKAGE_NAME} ${CDSGTEST_TREE_SOURCES})
21 target_link_libraries(${PACKAGE_NAME} 
22     ${CDS_SHARED_LIBRARY}
23     ${GTEST_LIBRARY}
24     ${Boost_THREAD_LIBRARY}
25     ${Boost_SYSTEM_LIBRARY}
26     ${CMAKE_THREAD_LIBS_INIT}
27 )
28
29 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})