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

22 lines
397 B
CMake
Raw Normal View History

2020-12-04 19:45:43 +08:00
set(TARGET_TUTORIAL tutorial)
set(SRC_TUTORIAL
tutorialmain.cpp
tutorial_callbacklist.cpp
tutorial_eventdispatcher.cpp
tutorial_eventqueue.cpp
tutorial_hetercallbacklist.cpp
tutorial_argumentadapter.cpp
2020-12-04 19:45:43 +08:00
)
add_executable(
${TARGET_TUTORIAL}
${SRC_TUTORIAL}
)
2020-12-04 19:53:59 +08:00
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${TARGET_TUTORIAL} Threads::Threads)
2020-12-04 19:45:43 +08:00