${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/src
${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/adns_win32)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-add_definitions(-DADNS_JGAA_WIN32)
+add_definitions(
+ -D_DLL -D__USE_CRTIMP
+ -DADNS_JGAA_WIN32)
spec2def(dnsapi.dll dnsapi.spec)
-list(APPEND SOURCE
+list(APPEND SOURCE
dnsapi/adns.c
dnsapi/context.c
dnsapi/memory.c
set_entrypoint(dnsapi 0)
target_link_libraries(dnsapi adns)
+if(MSVC)
+ target_link_libraries(dnsapi msvcsup)
+endif()
add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi/precomp.h ${SOURCE})
-add_dependencies(dnsapi psdk buildno_header)
-add_cab_target(dnsapi 1)
\ No newline at end of file
+add_dependencies(dnsapi psdk)
+add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)
+add_importlib_target(dnsapi.spec)