1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl) 3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dnsrslvr.idl) 4 5list(APPEND SOURCE 6 cache.c 7 dnsrslvr.c 8 hostsfile.c 9 rpcserver.c 10 precomp.h 11 ${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr_s.c) 12 13spec2def(dnsrslvr.dll dnsrslvr.spec ADD_IMPORTLIB) 14 15add_library(dnsrslvr SHARED ${SOURCE} dnsrslvr.rc ${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr.def) 16 17if(NOT MSVC) 18 target_link_libraries(dnsrslvr ${PSEH_LIB}) 19endif() 20 21set_module_type(dnsrslvr win32dll UNICODE) 22add_importlibs(dnsrslvr advapi32 rpcrt4 dnsapi iphlpapi msvcrt kernel32 ntdll) 23add_pch(dnsrslvr precomp.h SOURCE) 24add_cd_file(TARGET dnsrslvr DESTINATION reactos/system32 FOR all) 25