2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
include
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/src
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/adns_win32)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-06-13 15:31:11 +00:00
|
|
|
add_definitions(-DADNS_JGAA_WIN32)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
dnsapi/adns.c
|
|
|
|
dnsapi/context.c
|
|
|
|
dnsapi/memory.c
|
|
|
|
dnsapi/names.c
|
|
|
|
dnsapi/query.c
|
|
|
|
dnsapi/record.c
|
|
|
|
dnsapi/stubs.c
|
2014-02-10 12:19:56 +00:00
|
|
|
dnsapi/precomp.h)
|
|
|
|
|
|
|
|
add_library(dnsapi SHARED
|
|
|
|
${SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
dnsapi.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
|
|
|
|
|
2013-02-23 16:45:48 +00:00
|
|
|
set_module_type(dnsapi win32dll)
|
2011-05-16 13:12:07 +00:00
|
|
|
target_link_libraries(dnsapi adns)
|
2016-09-30 15:19:29 +00:00
|
|
|
add_importlibs(dnsapi advapi32 user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(dnsapi dnsapi/precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)
|