1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-27 16:41:11 +08:00
eventpp/tests/unittest/CMakeLists.txt

36 lines
828 B
CMake
Raw Normal View History

2018-08-05 12:46:36 +08:00
set(TARGET_TEST unittest)
set(SRC_TEST
testmain.cpp
tutorial_callbacklist.cpp
tutorial_eventdispatcher.cpp
tutorial_eventqueue.cpp
tutorial_hetercallbacklist.cpp
2018-08-05 12:46:36 +08:00
test_callbacklist_basic.cpp
test_callbacklist_ctors.cpp
test_callbacklist_multithread.cpp
test_dispatcher_basic.cpp
test_dispatcher_ctors.cpp
test_dispatcher_multithread.cpp
test_queue_basic.cpp
test_queue_multithread.cpp
2019-03-28 15:32:24 +08:00
test_hetercallbacklist_basic.cpp
2018-12-08 08:49:55 +08:00
test_heterdispatcher_basic.cpp
test_heterqueue_basic.cpp
2018-08-05 12:46:36 +08:00
test_eventutil.cpp
test_conditionalremover.cpp
test_counterremover.cpp
test_scopedremover.cpp
)
add_executable(
${TARGET_TEST}
${SRC_TEST}
)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${TARGET_TEST} Threads::Threads)
2019-03-31 19:38:49 +08:00
set_target_properties(${TARGET_TEST} PROPERTIES CXX_STANDARD 14)