[CRT] Add missing posix error codes
[reactos.git] / dll / win32 / iphlpapi / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
4 ${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include
5 ${REACTOS_SOURCE_DIR}/sdk/lib/tdilib)
6
7 spec2def(iphlpapi.dll iphlpapi.spec ADD_IMPORTLIB)
8
9 add_definitions(
10 -DGetAdaptersAddressesV2
11 -D_CRT_NO_POSIX_ERROR_CODES)
12
13 list(APPEND SOURCE
14 address.c
15 dhcp_reactos.c
16 icmp.c
17 ifenum_reactos.c
18 ipstats_reactos.c
19 iphlpapi_reactos.c
20 iphlpapi_main.c
21 media.c
22 registry.c
23 resinfo_reactos.c
24 route_reactos.c
25 iphlpapi_private.h
26 ${CMAKE_CURRENT_BINARY_DIR}/iphlpapi_stubs.c)
27
28 add_library(iphlpapi MODULE
29 ${SOURCE}
30 iphlpapi.rc
31 iphlpapi_fakestubs.c
32 iphlpapi.spec
33 ${CMAKE_CURRENT_BINARY_DIR}/iphlpapi.def)
34
35 set_module_type(iphlpapi win32dll UNICODE)
36 target_link_libraries(iphlpapi wine tdilib)
37 add_importlibs(iphlpapi dhcpcsvc advapi32 psapi ws2_32 msvcrt kernel32 ntdll)
38 add_pch(iphlpapi iphlpapi_private.h SOURCE)
39 add_cd_file(TARGET iphlpapi DESTINATION reactos/system32 FOR all)