[NETAPI32]
[reactos.git] / reactos / dll / win32 / netapi32 / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
3 add_definitions(-D__WINESRC__)
4
5 spec2def(netapi32.dll netapi32.spec ADD_IMPORTLIB)
6
7 list(APPEND SOURCE
8 access.c
9 apibuf.c
10 browsr.c
11 ds.c
12 group.c
13 local_group.c
14 misc.c
15 nbcmdqueue.c
16 nbnamecache.c
17 nbt.c
18 netapi32.c
19 netbios.c
20 share.c
21 user.c
22 wksta.c
23 ${CMAKE_CURRENT_BINARY_DIR}/netapi32_stubs.c
24 ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
25
26 add_library(netapi32 SHARED ${SOURCE})
27
28 set_module_type(netapi32 win32dll)
29
30 target_link_libraries(netapi32 wine)
31
32 add_importlibs(netapi32 iphlpapi ws2_32 advapi32 msvcrt kernel32 ntdll)
33
34 add_delay_importlibs(netapi32 samlib secur32)
35
36 add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)
37