Fixed explicit ctor bugs in stress tests
[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/michael_alloc.cpp
8     framework/stress_test.cpp
9 )
10
11 add_custom_command(
12     OUTPUT ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt
13     MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/test/stress/data/text.txt
14     COMMAND perl -X ${PROJECT_SOURCE_DIR}/test/stress/data/split.pl ${PROJECT_SOURCE_DIR}/test/stress/data/text.txt ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt
15 )
16 set_property(SOURCE framework/stress_test.cpp APPEND PROPERTY OBJECT_DEPENDS ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt)
17
18 add_library(${CDSSTRESS_FRAMEWORK_LIBRARY} OBJECT ${CDSSTRESS_FRAMEWORK_SOURCES}) 
19
20 include_directories(
21     ${CMAKE_CURRENT_SOURCE_DIR}
22 )
23
24 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/freelist)
25 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/map)
26 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/pqueue)
27 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/queue)
28 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/set)
29 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/stack)
30
31 add_custom_target( stress-all
32     DEPENDS
33         stress-freelist
34         stress-map
35         stress-pqueue
36         stress-queue
37         stress-stack
38         stress-set
39 )
40
41 file(GLOB CONF_FILES ${PROJECT_SOURCE_DIR}/test/stress/data/*.conf)
42 file(COPY ${CONF_FILES} DESTINATION ${EXECUTABLE_OUTPUT_PATH})