[CMAKE]
[reactos.git] / reactos / dll / win32 / netapi32 / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/include/reactos/idl
4 ${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 add_definitions(-D__WINESRC__)
7 spec2def(netapi32.dll netapi32.spec ADD_IMPORTLIB)
8 add_rpc_files(client
9 ${REACTOS_SOURCE_DIR}/include/reactos/idl/atsvc.idl
10 ${REACTOS_SOURCE_DIR}/include/reactos/idl/dssetup.idl
11 ${REACTOS_SOURCE_DIR}/include/reactos/idl/srvsvc.idl
12 ${REACTOS_SOURCE_DIR}/include/reactos/idl/wkssvc.idl)
13
14 list(APPEND SOURCE
15 access.c
16 apibuf.c
17 browsr.c
18 ds.c
19 dssetup.c
20 group.c
21 local_group.c
22 misc.c
23 nbcmdqueue.c
24 nbnamecache.c
25 nbt.c
26 netapi32.c
27 netbios.c
28 schedule.c
29 share.c
30 srvsvc.c
31 user.c
32 wksta.c
33 wksta_new.c
34 netapi32.h
35 ${CMAKE_CURRENT_BINARY_DIR}/atsvc_c.c
36 ${CMAKE_CURRENT_BINARY_DIR}/dssetup_c.c
37 ${CMAKE_CURRENT_BINARY_DIR}/srvsvc_c.c
38 ${CMAKE_CURRENT_BINARY_DIR}/wkssvc_c.c)
39
40 add_library(netapi32 SHARED
41 ${SOURCE}
42 ${CMAKE_CURRENT_BINARY_DIR}/netapi32_stubs.c
43 ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
44
45 set_module_type(netapi32 win32dll)
46 target_link_libraries(netapi32 wine ${PSEH_LIB})
47 add_delay_importlibs(netapi32 samlib secur32)
48 add_importlibs(netapi32 iphlpapi ws2_32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
49 add_pch(netapi32 netapi32.h SOURCE)
50 add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)