Updated CMake file for unbound

This commit is contained in:
WolverinDEV 2019-10-24 20:01:25 +02:00
parent bc94c8d31a
commit c4593fe6c2
2 changed files with 5 additions and 7 deletions

2
github

@ -1 +1 @@
Subproject commit a1490ab0d97f65e27845fec6daf88be8ed6d1014
Subproject commit 14645dca78396c915ad4ad122d532f24fdfd2969

View File

@ -4,16 +4,14 @@ set(SOURCE_FILES ${SOURCE_FILES} src/resolver.cpp src/types.cpp src/response.cpp
find_package(Libevent REQUIRED)
include_directories(${LIBEVENT_INCLUDE_DIRS})
message("EVENT: ${LIBEVENT_INCLUDE_DIRS}")
#find_package(Unbound REQUIRED)
#include_directories(${Unbound_INCLUDE_DIR})
find_package(unbound REQUIRED)
add_nodejs_module(${MODULE_NAME} binding.cc ${SOURCE_FILES})
target_link_libraries(${MODULE_NAME} /home/wolverindev/TeaSpeak-Client/third_party/unbound/build/lib/libunbound.a ${LIBEVENT_STATIC_LIBRARIES} pthread)
target_link_libraries(${MODULE_NAME} unbound::static ${LIBEVENT_STATIC_LIBRARIES} pthread)
add_executable(DNS-Test ${SOURCE_FILES} test/main.cpp)
target_link_libraries(DNS-Test /home/wolverindev/TeaSpeak-Client/third_party/unbound/build/lib/libunbound.a ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread)
target_link_libraries(DNS-Test unbound::static ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread)
add_executable(DNS-Test2 test/crash.cpp)
target_link_libraries(DNS-Test2 /home/wolverindev/TeaSpeak-Client/third_party/unbound/build/lib/libunbound.a ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread)
target_link_libraries(DNS-Test2 unbound::static ssl crypto ${LIBEVENT_STATIC_LIBRARIES} pthread)