1 2include_directories( 3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl 4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 5 6add_definitions(-D__WINESRC__) 7spec2def(netapi32.dll netapi32.spec ADD_IMPORTLIB) 8add_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/netdfs.idl 13 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/netlogon.idl 14 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/srvsvc.idl 15 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wkssvc.idl) 16 17list(APPEND SOURCE 18 apibuf.c 19 browser.c 20 dfs.c 21 display.c 22 dssetup.c 23 group_new.c 24 local_group.c 25 misc.c 26 nbcmdqueue.c 27 nbnamecache.c 28 nbt.c 29 netapi32.c 30 netbios.c 31 netlogon.c 32 obsolete.c 33 schedule.c 34 srvsvc.c 35 user.c 36 utils.c 37 wksta.c 38 wksta_new.c 39 netapi32.h 40 ${CMAKE_CURRENT_BINARY_DIR}/atsvc_c.c 41 ${CMAKE_CURRENT_BINARY_DIR}/browser_c.c 42 ${CMAKE_CURRENT_BINARY_DIR}/dssetup_c.c 43 ${CMAKE_CURRENT_BINARY_DIR}/netdfs_c.c 44 ${CMAKE_CURRENT_BINARY_DIR}/netlogon_c.c 45 ${CMAKE_CURRENT_BINARY_DIR}/srvsvc_c.c 46 ${CMAKE_CURRENT_BINARY_DIR}/wkssvc_c.c) 47 48add_library(netapi32 MODULE 49 ${SOURCE} 50 ${CMAKE_CURRENT_BINARY_DIR}/netapi32_stubs.c 51 ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def) 52 53set_module_type(netapi32 win32dll) 54target_link_libraries(netapi32 wine ${PSEH_LIB}) 55add_delay_importlibs(netapi32 samlib secur32) 56add_importlibs(netapi32 iphlpapi ws2_32 advapi32 rpcrt4 msvcrt kernel32 ntdll) 57add_pch(netapi32 netapi32.h SOURCE) 58add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all) 59