project(TeaWebDNS) # Require libevent find_package(Libevent REQUIRED) include_directories(${LIBEVENT_INCLUDE_DIRS}) message(${LIBEVENT_INCLUDE_DIRS}) add_executable(TeaWebDNS ./main.cpp src/server.cpp src/handler.cpp) target_link_libraries(TeaWebDNS ${LIBEVENT_STATIC_LIBRARIES} pthread teadns__parser)