Added different bit_reversal algo to SplitListSet/Map stress test
[libcds.git] / test / CMakeLists.txt
1
2 if (NOT GTEST_INCLUDE_DIRS)
3    find_package(GTest REQUIRED)
4 endif()
5 message("GTest: ${GTEST_INCLUDE_DIRS}, lib: ${GTEST_LIBRARY}")
6
7 include_directories(
8     ${CMAKE_CURRENT_SOURCE_DIR}/include
9     ${GTEST_INCLUDE_DIRS}
10 )
11
12 set(CDS_TEST_LIBRARIES
13     ${CDS_SHARED_LIBRARY}
14     ${GTEST_LIBRARY}
15     ${Boost_THREAD_LIBRARY}
16     ${Boost_SYSTEM_LIBRARY}
17     ${CMAKE_THREAD_LIBS_INIT}
18     ${EXTERNAL_SYSTEM_LIBS}
19 )
20
21 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_LANG_CXX11") 
22  
23 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/unit)
24 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/stress)
25
26 file(GLOB SANITIZER_OPTION_FILES ${PROJECT_SOURCE_DIR}/tools/tsan-suppression)
27 file(COPY ${SANITIZER_OPTION_FILES} DESTINATION ${EXECUTABLE_OUTPUT_PATH})