-add_executable(catch_main
- main.cpp
+file(GLOB_RECURSE TESTING_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
- lib/random_.cpp
-
- lib/Cluster.cpp
- lib/Poll.cpp
- lib/Server.cpp
- lib/WaitForConn.cpp
- lib/WaitForExec.cpp
-
- server.cpp
- )
-
-set_target_properties(catch_main PROPERTIES
- CXX_STANDARD 17)
+add_executable(catch_main ${TESTING_SRC})
+set_target_properties(catch_main PROPERTIES CXX_STANDARD 17)
+target_link_libraries(catch_main libhashkit libmemcached)