1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-27 16:41:11 +08:00
eventpp/tests/tutorial/CMakeLists.txt
2023-04-30 08:23:54 +08:00

24 lines
454 B
CMake

set(TARGET_TUTORIAL tutorial)
set(SRC_TUTORIAL
tutorialmain.cpp
tutorial_callbacklist.cpp
tutorial_eventdispatcher.cpp
tutorial_eventqueue.cpp
tutorial_hetercallbacklist.cpp
tutorial_hetereventdispatcher.cpp
tutorial_argumentadapter.cpp
tutorial_anydata.cpp
)
add_executable(
${TARGET_TUTORIAL}
${SRC_TUTORIAL}
)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${TARGET_TUTORIAL} Threads::Threads)