[SkipList] Added random-lvel generators for max height 32/24/16
[libcds.git] / test / CMakeLists.txt
index 9774275..3c13836 100644 (file)
@@ -1,10 +1,27 @@
 
-find_package(GTest REQUIRED) 
+if (NOT GTEST_INCLUDE_DIRS)
+   find_package(GTest REQUIRED)
+endif()
+message("GTest: ${GTEST_INCLUDE_DIRS}, lib: ${GTEST_LIBRARIES}")
 
 include_directories(
     ${CMAKE_CURRENT_SOURCE_DIR}/include
     ${GTEST_INCLUDE_DIRS}
 )
 
+set(CDS_TEST_LIBRARIES
+    ${CDS_SHARED_LIBRARY}
+    ${GTEST_LIBRARIES}
+    ${Boost_THREAD_LIBRARY}
+    ${Boost_SYSTEM_LIBRARY}
+    ${CMAKE_THREAD_LIBS_INIT}
+    ${EXTERNAL_SYSTEM_LIBS}
+)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_LANG_CXX11") 
 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/unit)
 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/stress)
+
+file(GLOB SANITIZER_OPTION_FILES ${PROJECT_SOURCE_DIR}/tools/tsan-suppression)
+file(COPY ${SANITIZER_OPTION_FILES} DESTINATION ${EXECUTABLE_OUTPUT_PATH})