[SkipList] Added random-lvel generators for max height 32/24/16
[libcds.git] / test / stress / CMakeLists.txt
1 set(CDSSTRESS_FRAMEWORK_LIBRARY stress-framework)
2
3 set(CDSSTRESS_FRAMEWORK_SOURCES
4     framework/city.cpp
5     framework/config.cpp
6     framework/ellen_bintree_update_desc_pool.cpp
7     framework/stress_test.cpp
8 )
9
10 add_custom_command(
11     OUTPUT ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt
12     MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/test/stress/data/text.txt
13     COMMAND perl -X ${PROJECT_SOURCE_DIR}/test/stress/data/split.pl ${PROJECT_SOURCE_DIR}/test/stress/data/text.txt ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt
14 )
15 set_property(SOURCE framework/stress_test.cpp APPEND PROPERTY OBJECT_DEPENDS ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt)
16
17 add_library(${CDSSTRESS_FRAMEWORK_LIBRARY} OBJECT ${CDSSTRESS_FRAMEWORK_SOURCES}) 
18
19 include_directories(
20     ${CMAKE_CURRENT_SOURCE_DIR}
21 )
22
23 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/freelist)
24 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/map)
25 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/pqueue)
26 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/queue)
27 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/set)
28 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/stack)
29
30 add_custom_target( stress-all
31     DEPENDS
32         stress-freelist
33         stress-map
34         stress-pqueue
35         stress-queue
36         stress-stack
37         stress-set
38 )
39
40 file(GLOB CONF_FILES ${PROJECT_SOURCE_DIR}/test/stress/data/*.conf)
41 file(COPY ${CONF_FILES} DESTINATION ${EXECUTABLE_OUTPUT_PATH})