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