40b793f12c2dd539a182e9c9763095d04fa88f33
[reactos.git] / dll / win32 / iphlpapi / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-D_DLL -D__USE_CRTIMP)
5
6 include_directories(
7 ${REACTOS_SOURCE_DIR}/include/reactos/wine
8 ${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include
9 ${REACTOS_SOURCE_DIR}/lib/tdilib)
10
11 spec2def(iphlpapi.dll iphlpapi.spec)
12
13 list(APPEND SOURCE
14 dhcp_reactos.c
15 ifenum_reactos.c
16 ipstats_reactos.c
17 iphlpapi_main.c
18 media.c
19 registry.c
20 resinfo_reactos.c
21 route_reactos.c
22 iphlpapi.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/iphlpapi.def)
24
25 add_library(iphlpapi SHARED ${SOURCE})
26
27 set_module_type(iphlpapi win32dll)
28
29 target_link_libraries(iphlpapi wine tdilib)
30 add_importlibs(iphlpapi dhcpcsvc advapi32 ws2_32 msvcrt kernel32 ntdll)
31 add_cab_target(iphlpapi 1)
32 add_importlib_target(iphlpapi.spec)