[CMAKE]
[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_stubs.c
24 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
25
26 add_library(dhcpcsvc SHARED
27 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_rosdhcp.h.gch
28 ${SOURCE})
29
30 set_module_type(dhcpcsvc win32dll)
31
32 add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
33 add_importlib_target(dhcpcsvc.spec)
34
35 add_pch(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/include/rosdhcp.h ${SOURCE})
36
37 add_cd_file(TARGET dhcpcsvc DESTINATION reactos/system32 FOR all)