mirror of
https://github.com/wqking/eventpp.git
synced 2024-12-29 01:49:41 +08:00
22 lines
450 B
CMake
22 lines
450 B
CMake
set(TARGET_TEST benchmark)
|
|
|
|
set(SRC_TEST
|
|
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(
|
|
${TARGET_TEST}
|
|
${SRC_TEST}
|
|
)
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(${TARGET_TEST} Threads::Threads)
|
|
|
|
add_test(NAME ${TARGET_TEST} COMMAND ${TARGET_TEST})
|