xref: /reactos/dll/win32/iphlpapi/CMakeLists.txt (revision b09b5584)
1
2include_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
7spec2def(iphlpapi.dll iphlpapi.spec ADD_IMPORTLIB)
8
9add_definitions(
10    -DGetAdaptersAddressesV2
11    -D_CRT_NO_POSIX_ERROR_CODES)
12
13list(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
28add_library(iphlpapi MODULE
29    ${SOURCE}
30    iphlpapi.rc
31    iphlpapi_fakestubs.c
32    iphlpapi.spec
33    ${CMAKE_CURRENT_BINARY_DIR}/iphlpapi.def)
34
35set_module_type(iphlpapi win32dll UNICODE)
36target_link_libraries(iphlpapi wine tdilib)
37add_importlibs(iphlpapi dhcpcsvc advapi32 psapi ws2_32 msvcrt kernel32 ntdll)
38add_pch(iphlpapi iphlpapi_private.h SOURCE)
39add_cd_file(TARGET iphlpapi DESTINATION reactos/system32 FOR all)
40