2019-10-24 18:41:35 +02:00
|
|
|
set(MODULE_NAME "teaclient_dns")
|
|
|
|
|
2019-10-25 17:01:25 +02:00
|
|
|
set(SOURCE_FILES ${SOURCE_FILES} src/resolver.cpp src/types.cpp src/response.cpp utils.cpp src/resolver_linux.cpp)
|
2019-10-24 18:41:35 +02:00
|
|
|
|
|
|
|
find_package(Libevent REQUIRED)
|
|
|
|
include_directories(${LIBEVENT_INCLUDE_DIRS})
|
|
|
|
|
2019-10-24 20:01:25 +02:00
|
|
|
find_package(unbound REQUIRED)
|
2019-10-24 18:41:35 +02:00
|
|
|
|
|
|
|
add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES})
|
2019-10-24 20:01:25 +02:00
|
|
|
target_link_libraries(${MODULE_NAME} unbound::static ${LIBEVENT_STATIC_LIBRARIES} pthread)
|
2019-10-24 18:41:35 +02:00
|
|
|
|
|
|
|
add_executable(DNS-Test ${SOURCE_FILES} test/main.cpp)
|
2019-10-24 20:01:25 +02:00
|
|
|
target_link_libraries(DNS-Test unbound::static ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread)
|
2019-10-24 18:41:35 +02:00
|
|
|
|
|
|
|
add_executable(DNS-Test2 test/crash.cpp)
|
2019-10-24 20:01:25 +02:00
|
|
|
target_link_libraries(DNS-Test2 unbound::static ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread)
|