1 2include_directories( 3 include 4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl 5 ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/src 6 ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/adns_win32) 7 8add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dnsrslvr.idl) 9 10add_definitions(-DADNS_JGAA_WIN32 -D_CRT_NO_POSIX_ERROR_CODES) 11spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB) 12 13list(APPEND SOURCE 14 adns.c 15 context.c 16 memory.c 17 names.c 18 query.c 19 record.c 20 rpc.c 21 stubs.c 22 precomp.h 23 ${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr_c.c) 24 25add_library(dnsapi MODULE 26 ${SOURCE} 27 dnsapi.rc 28 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi_stubs.c 29 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def) 30 31set_module_type(dnsapi win32dll) 32target_link_libraries(dnsapi adns ${PSEH_LIB}) 33add_importlibs(dnsapi advapi32 rpcrt4 user32 ws2_32 iphlpapi msvcrt kernel32 ntdll) 34add_pch(dnsapi precomp.h SOURCE) 35add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all) 36