8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00
firebird-mirror/extern/libcds/test/stress/CMakeLists.txt
2022-10-08 20:46:39 +03:00

43 lines
1.4 KiB
CMake

set(CDSSTRESS_FRAMEWORK_LIBRARY stress-framework)
set(CDSSTRESS_FRAMEWORK_SOURCES
framework/city.cpp
framework/config.cpp
framework/ellen_bintree_update_desc_pool.cpp
framework/stress_test.cpp
)
add_custom_command(
OUTPUT ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt
MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/test/stress/data/text.txt
COMMAND perl -X ${PROJECT_SOURCE_DIR}/test/stress/data/split.pl ${PROJECT_SOURCE_DIR}/test/stress/data/text.txt ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt
)
set_property(SOURCE framework/stress_test.cpp APPEND PROPERTY OBJECT_DEPENDS ${EXECUTABLE_OUTPUT_PATH}/dictionary.txt)
add_library(${CDSSTRESS_FRAMEWORK_LIBRARY} ${CDSSTRESS_FRAMEWORK_SOURCES})
target_link_libraries(${CDSSTRESS_FRAMEWORK_LIBRARY} PUBLIC ${CDS_SHARED_LIBRARY})
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/freelist)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/map)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/pqueue)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/queue)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/set)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/stack)
add_custom_target( stress-all
DEPENDS
stress-freelist
stress-map
stress-pqueue
stress-queue
stress-stack
stress-set
)
file(GLOB CONF_FILES ${PROJECT_SOURCE_DIR}/test/stress/data/*.conf)
file(COPY ${CONF_FILES} DESTINATION ${EXECUTABLE_OUTPUT_PATH})