11 lines
374 B
CMake
11 lines
374 B
CMake
project(TeaWebDNS)
|
|
|
|
# Require libevent
|
|
find_package(Libevent REQUIRED)
|
|
include_directories(${LIBEVENT_INCLUDE_DIRS})
|
|
message(${LIBEVENT_INCLUDE_DIRS})
|
|
|
|
find_package(spdlog REQUIRED)
|
|
|
|
add_executable(TeaWebDNS ./main.cpp src/server.cpp src/handler.cpp src/logger.cpp)
|
|
target_link_libraries(TeaWebDNS ${LIBEVENT_STATIC_LIBRARIES} stdc++fs pthread teadns::parser spdlog::spdlog) |