[CMAKE]
[reactos.git] / 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)
6
7 list(APPEND SOURCE
8 access.c
9 apibuf.c
10 browsr.c
11 ds.c
12 local_group.c
13 nbcmdqueue.c
14 nbnamecache.c
15 nbt.c
16 netapi32.c
17 netbios.c
18 share.c
19 wksta.c
20 ${CMAKE_CURRENT_BINARY_DIR}/netapi32_stubs.c
21 ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
22
23 add_library(netapi32 SHARED ${SOURCE})
24
25 set_module_type(netapi32 win32dll)
26
27 target_link_libraries(netapi32 wine)
28
29 add_importlibs(netapi32 iphlpapi ws2_32 advapi32 msvcrt kernel32 ntdll)
30
31 add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)
32 add_importlib_target(netapi32.spec)