mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 06:09:58 +00:00
23373acbb9
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.
20 lines
503 B
CMake
20 lines
503 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/winsock)
|
|
spec2def(ws2help.dll ws2help.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
apc.c
|
|
context.c
|
|
dllmain.c
|
|
handle.c
|
|
notify.c
|
|
precomp.h)
|
|
|
|
add_library(ws2help MODULE
|
|
${SOURCE}
|
|
${CMAKE_CURRENT_BINARY_DIR}/ws2help.def)
|
|
|
|
set_module_type(ws2help win32dll)
|
|
add_importlibs(ws2help advapi32 ws2_32 msvcrt kernel32 ntdll)
|
|
add_pch(ws2help precomp.h SOURCE)
|
|
add_cd_file(TARGET ws2help DESTINATION reactos/system32 FOR all)
|