1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-29 01:49:41 +08:00
eventpp/tests/benchmark/CMakeLists.txt

21 lines
422 B
CMake
Raw Normal View History

2020-12-04 19:45:43 +08:00
set(TARGET_BENCHMARK benchmark)
2018-08-05 12:46:36 +08:00
2020-12-04 19:45:43 +08:00
set(SRC_BENCHMARK
2018-08-05 12:46:36 +08:00
testmain.cpp
b1_callbacklist_invoking_vs_cpp.cpp
b2_map_vs_unordered_map.cpp
b3_b5_eventqueue.cpp
b6_callbacklist_add_remove_callbacks.cpp
b7_callbacklist_vs_function_list.cpp
)
add_executable(
2020-12-04 19:45:43 +08:00
${TARGET_BENCHMARK}
${SRC_BENCHMARK}
2018-08-05 12:46:36 +08:00
)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
2020-12-04 19:45:43 +08:00
target_link_libraries(${TARGET_BENCHMARK} Threads::Threads)
2018-08-05 12:46:36 +08:00