c0040ddc94440db4009a1e781b3cfe7c7032c4a7
[reactos.git] / dll / win32 / dhcpcsvc / CMakeLists.txt
1
2 add_definitions(-Dtzset=_tzset)
3
4 include_directories(include)
5
6 spec2def(dhcpcsvc.dll dhcpcsvc.spec)
7
8 list(APPEND SOURCE
9 dhcp/adapter.c
10 dhcp/alloc.c
11 dhcp/api.c
12 dhcp/compat.c
13 dhcp/dhclient.c
14 dhcp/dispatch.c
15 dhcp/hash.c
16 dhcp/options.c
17 dhcp/pipe.c
18 dhcp/socket.c
19 dhcp/tables.c
20 dhcp/util.c
21 dhcpcsvc.c
22 dhcpcsvc.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
24
25 add_library(dhcpcsvc SHARED
26 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_rosdhcp.h.gch
27 ${SOURCE})
28
29 set_module_type(dhcpcsvc win32dll)
30
31 add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
32 add_importlib_target(dhcpcsvc.spec)
33
34 add_pch(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/include/rosdhcp.h ${SOURCE})
35
36 add_cab_target(dhcpcsvc 1)