reactos/base/services/dnsrslvr/CMakeLists.txt
Eric Kohl d49d7b3282 [DNSRSLVR] Add the DNS Resolver Cache Service
Patch written by Peter Hater and Christoph von Wittich.

Slightly modified by me in order to
- fix bit-rot
- fix header include issues
- disable integration with dnsapi because of confusing use of DnsQweryEx().

Integration with dnsapi will follow in a future commit.

CORE-12159
2019-10-27 13:48:04 +01:00

24 lines
711 B
CMake

include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dnsrslvr.idl)
list(APPEND SOURCE
cache.c
dnsrslvr.c
rpcserver.c
precomp.h
${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr_s.c)
spec2def(dnsrslvr.dll dnsrslvr.spec ADD_IMPORTLIB)
add_library(dnsrslvr SHARED ${SOURCE} dnsrslvr.rc ${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr.def)
if(NOT MSVC)
target_link_libraries(dnsrslvr ${PSEH_LIB})
endif()
set_module_type(dnsrslvr win32dll UNICODE)
add_importlibs(dnsrslvr advapi32 rpcrt4 dnsapi iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsrslvr precomp.h SOURCE)
add_cd_file(TARGET dnsrslvr DESTINATION reactos/system32 FOR all)