mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00

Don't automatically add stub files to the sources, instead add them manually where neccessary. also fix a number of spec files to resemble actual state of implementation. svn path=/branches/cmake-bringup/; revision=50574
37 lines
807 B
CMake
37 lines
807 B
CMake
|
|
add_definitions(-Dtzset=_tzset)
|
|
|
|
include_directories(include)
|
|
|
|
spec2def(dhcpcsvc.dll dhcpcsvc.spec)
|
|
|
|
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
|
|
dhcpcsvc.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc.def)
|
|
|
|
add_library(dhcpcsvc SHARED
|
|
${CMAKE_CURRENT_BINARY_DIR}/dhcpcsvc_rosdhcp.h.gch
|
|
${SOURCE})
|
|
|
|
set_module_type(dhcpcsvc win32dll)
|
|
|
|
add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
|
|
add_importlib_target(dhcpcsvc.spec)
|
|
|
|
add_pch(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/include/rosdhcp.h ${SOURCE})
|
|
|
|
add_cab_target(dhcpcsvc 1)
|