reactos/dll/win32/dnsapi/CMakeLists.txt
Eric Kohl b79246c534 [DNSAPI] Add the Resolver Service RPC client code and implement DnsFlushResolverCache()
Patch by Peter Hater and Christoph von Wittich.
Slightly modified by me.

CORE-12159
2019-10-27 20:38:25 +01:00

34 lines
997 B
CMake

include_directories(
include
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/src
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/adns_win32)
add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dnsrslvr.idl)
add_definitions(-DADNS_JGAA_WIN32 -D_CRT_NO_POSIX_ERROR_CODES)
spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dnsapi/adns.c
dnsapi/context.c
dnsapi/memory.c
dnsapi/names.c
dnsapi/query.c
dnsapi/record.c
dnsapi/rpc.c
dnsapi/stubs.c
dnsapi/precomp.h
${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr_c.c)
add_library(dnsapi MODULE
${SOURCE}
dnsapi.rc
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
set_module_type(dnsapi win32dll)
target_link_libraries(dnsapi adns ${PSEH_LIB})
add_importlibs(dnsapi advapi32 rpcrt4 user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsapi dnsapi/precomp.h SOURCE)
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)