1
2add_definitions(-Dtzset=_tzset)
3include_directories(include)
4spec2def(dhcpcsvc.dll dhcpcsvc.spec ADD_IMPORTLIB)
5
6list(APPEND SOURCE
7    dhcp/adapter.c
8    dhcp/alloc.c
9    dhcp/api.c
10    dhcp/compat.c
11    dhcp/dhclient.c
12    dhcp/dispatch.c
13    dhcp/hash.c
14    dhcp/options.c
15    dhcp/pipe.c
16    dhcp/socket.c
17    dhcp/tables.c
18    dhcp/util.c
19    dhcpcsvc.c
20    include/rosdhcp.h)
21
22add_library(dhcpcsvc SHARED
23    ${SOURCE}
24    dhcpcsvc.rc
25    ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_stubs.c
26    ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
27
28set_module_type(dhcpcsvc win32dll)
29add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
30add_pch(dhcpcsvc include/rosdhcp.h SOURCE)
31add_cd_file(TARGET dhcpcsvc DESTINATION reactos/system32 FOR all)
32