[BOOTDATA]
[reactos.git] / reactos / base / services / dhcpcsvc / CMakeLists.txt
1
2 add_definitions(-Dtzset=_tzset)
3 include_directories(include)
4 spec2def(dhcpcsvc.dll dhcpcsvc.spec ADD_IMPORTLIB)
5
6 list(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
22 add_library(dhcpcsvc SHARED
23 ${SOURCE}
24 dhcpcsvc.rc
25 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_stubs.c
26 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
27
28 set_module_type(dhcpcsvc win32dll)
29 add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
30 add_pch(dhcpcsvc include/rosdhcp.h SOURCE)
31 add_cd_file(TARGET dhcpcsvc DESTINATION reactos/system32 FOR all)