1
0
mirror of https://github.com/wqking/eventpp.git synced 2025-01-15 09:37:55 +08:00
eventpp/tests/CMakeLists.txt

42 lines
809 B
CMake

project(eventpptest)
cmake_minimum_required(VERSION 3.2)
set(CMAKE_CXX_STANDARD 11)
set(TARGET_TEST tests)
set(THIRDPARTY_PATH ../../thirdparty)
set(SRC_TEST
testmain.cpp
benchmark.cpp
tutorial_callbacklist.cpp
tutorial_eventdispatcher.cpp
tutorial_eventqueue.cpp
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
test_eventutil.cpp
test_conditionalremover.cpp
test_counterremover.cpp
test_scopedremover.cpp
)
include_directories(../include)
add_executable(
${TARGET_TEST}
${SRC_TEST}
)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${TARGET_TEST} Threads::Threads)