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 21list(APPEND PCH_SKIP_SOURCE 22 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_stubs.c) 23 24add_library(dhcpcsvc MODULE 25 ${SOURCE} 26 ${PCH_SKIP_SOURCE} 27 dhcpcsvc.rc 28 ${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def) 29 30set_module_type(dhcpcsvc win32dll) 31add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll) 32add_pch(dhcpcsvc include/rosdhcp.h "${PCH_SKIP_SOURCE}") 33add_cd_file(TARGET dhcpcsvc DESTINATION reactos/system32 FOR all) 34