* Sync up to trunk head (r64829).
[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 spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
9
10 list(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
20 add_library(dnsapi SHARED
21 ${SOURCE}
22 dnsapi.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
24
25 set_module_type(dnsapi win32dll)
26 target_link_libraries(dnsapi adns)
27 add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
28 add_pch(dnsapi dnsapi/precomp.h SOURCE)
29 add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)