5b2f887c2d834180d31a69297b248864deece63c
[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(-D_DLL -D__USE_CRTIMP)
8 add_definitions(-DADNS_JGAA_WIN32)
9
10 spec2def(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi.spec ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
11
12 list(APPEND SOURCE
13 dnsapi/adns.c
14 dnsapi/context.c
15 dnsapi/memory.c
16 dnsapi/names.c
17 dnsapi/query.c
18 dnsapi/record.c
19 dnsapi/stubs.c
20 dnsapi.rc)
21
22 add_library(dnsapi SHARED
23 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi_precomp.h.gch
24 ${SOURCE})
25
26 set_entrypoint(dnsapi 0)
27
28 target_link_libraries(dnsapi
29 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def
30 adns)
31
32 add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
33 add_pch(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi/precomp.h ${SOURCE})
34 add_dependencies(dnsapi dnsapi_def psdk buildno_header)
35 add_cab_target(dnsapi 1)