[NETAPI32]
[reactos.git] / reactos / dll / win32 / netapi32 / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
4 ${REACTOS_SOURCE_DIR}/sdk/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}/sdk/include/reactos/idl/atsvc.idl
10 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/browser.idl
11 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dssetup.idl
12 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/netlogon.idl
13 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/srvsvc.idl
14 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wkssvc.idl)
15
16 list(APPEND SOURCE
17 access.c
18 apibuf.c
19 browser.c
20 ds.c
21 dssetup.c
22 group.c
23 local_group.c
24 misc.c
25 nbcmdqueue.c
26 nbnamecache.c
27 nbt.c
28 netapi32.c
29 netbios.c
30 netlogon.c
31 obsolete.c
32 schedule.c
33 srvsvc.c
34 user.c
35 wksta.c
36 wksta_new.c
37 netapi32.h
38 ${CMAKE_CURRENT_BINARY_DIR}/atsvc_c.c
39 ${CMAKE_CURRENT_BINARY_DIR}/browser_c.c
40 ${CMAKE_CURRENT_BINARY_DIR}/dssetup_c.c
41 ${CMAKE_CURRENT_BINARY_DIR}/netlogon_c.c
42 ${CMAKE_CURRENT_BINARY_DIR}/srvsvc_c.c
43 ${CMAKE_CURRENT_BINARY_DIR}/wkssvc_c.c)
44
45 add_library(netapi32 SHARED
46 ${SOURCE}
47 ${CMAKE_CURRENT_BINARY_DIR}/netapi32_stubs.c
48 ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
49
50 set_module_type(netapi32 win32dll)
51 target_link_libraries(netapi32 wine ${PSEH_LIB})
52 add_delay_importlibs(netapi32 samlib secur32)
53 add_importlibs(netapi32 iphlpapi ws2_32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
54 add_pch(netapi32 netapi32.h SOURCE)
55 add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)