[CRT] Massively improve performance of rand_s
[reactos.git] / dll / win32 / dnsapi / CMakeLists.txt
1
2 include_directories(
3 include
4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
5 ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/src
6 ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/adns_win32)
7
8 add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dnsrslvr.idl)
9
10 add_definitions(-DADNS_JGAA_WIN32 -D_CRT_NO_POSIX_ERROR_CODES)
11 spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
12
13 list(APPEND SOURCE
14 adns.c
15 context.c
16 memory.c
17 names.c
18 query.c
19 record.c
20 rpc.c
21 stubs.c
22 precomp.h
23 ${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr_c.c)
24
25 add_library(dnsapi MODULE
26 ${SOURCE}
27 dnsapi.rc
28 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi_stubs.c
29 ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
30
31 set_module_type(dnsapi win32dll)
32 target_link_libraries(dnsapi adns ${PSEH_LIB})
33 add_importlibs(dnsapi advapi32 rpcrt4 user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
34 add_pch(dnsapi precomp.h SOURCE)
35 add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)