project(TeaWebDNS) # Require libevent set(LIBEVENT_STATIC_LINK TRUE) find_package(Libevent REQUIRED) find_package(spdlog REQUIRED) add_executable(TeaWebDNS ./main.cpp src/server.cpp src/handler.cpp src/logger.cpp) target_link_libraries(TeaWebDNS libevent::core libevent::pthreads stdc++fs pthread teadns::parser spdlog::spdlog)