reactos/base/services/dhcpcsvc/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

31 lines
755 B
CMake

add_definitions(-Dtzset=_tzset)
include_directories(include)
spec2def(dhcpcsvc.dll dhcpcsvc.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dhcp/adapter.c
dhcp/alloc.c
dhcp/api.c
dhcp/compat.c
dhcp/dhclient.c
dhcp/dispatch.c
dhcp/hash.c
dhcp/options.c
dhcp/pipe.c
dhcp/socket.c
dhcp/tables.c
dhcp/util.c
dhcpcsvc.c
include/rosdhcp.h)
add_library(dhcpcsvc MODULE
${SOURCE}
dhcpcsvc.rc
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
set_module_type(dhcpcsvc win32dll)
add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
add_pch(dhcpcsvc include/rosdhcp.h SOURCE)
add_cd_file(TARGET dhcpcsvc DESTINATION reactos/system32 FOR all)