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