[CMAKE]
[reactos.git] / dll / win32 / ws2_32 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-DLE)
5 add_definitions(-DWINSOCK_API_LINKAGE=DECLSPEC_EXPORT)
6
7 include_directories(BEFORE include)
8 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
9
10 spec2def(ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/ws2_32.spec ${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def)
11
12 list(APPEND SOURCE
13 misc/bsd.c
14 misc/catalog.c
15 misc/dllmain.c
16 misc/event.c
17 misc/handle.c
18 misc/ns.c
19 misc/sndrcv.c
20 misc/stubs.c
21 misc/upcall.c
22 misc/async.c
23 ws2_32.rc)
24
25 add_library(ws2_32 SHARED ${CMAKE_CURRENT_BINARY_DIR}/ws2_32_ws2_32.h.gch ${SOURCE})
26
27 set_module_type(ws2_32 win32dll)
28
29 target_link_libraries(ws2_32
30 ${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def
31 wine)
32
33 add_importlibs(ws2_32 user32 advapi32 dnsapi ws2help kernel32 ntdll)
34 add_pch(ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/include/ws2_32.h ${SOURCE})
35 add_dependencies(ws2_32 ws2_32_def)