[CMAKE]
[reactos.git] / dll / win32 / dhcpcsvc / CMakeLists.txt
1
2 add_definitions(-Dtzset=_tzset)
3
4 include_directories(include)
5
6 spec2def(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/dhcpcsvc.spec ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
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
24 add_library(dhcpcsvc SHARED
25 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_rosdhcp.h.gch
26 ${SOURCE})
27
28 set_module_type(dhcpcsvc win32dll)
29
30 target_link_libraries(dhcpcsvc ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
31
32 add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
33 add_pch(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/include/rosdhcp.h ${SOURCE})
34 add_dependencies(dhcpcsvc dhcpcsvc_def)
35 add_cab_target(dhcpcsvc 1)