[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / win32 / ws2help / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/winsock)
3 spec2def(ws2help.dll ws2help.spec ADD_IMPORTLIB)
4
5 list(APPEND SOURCE
6 apc.c
7 context.c
8 dllmain.c
9 handle.c
10 notify.c
11 precomp.h)
12
13 add_library(ws2help MODULE
14 ${SOURCE}
15 ${CMAKE_CURRENT_BINARY_DIR}/ws2help.def)
16
17 set_module_type(ws2help win32dll)
18 add_importlibs(ws2help advapi32 ws2_32 msvcrt kernel32 ntdll)
19 add_pch(ws2help precomp.h SOURCE)
20 add_cd_file(TARGET ws2help DESTINATION reactos/system32 FOR all)