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