[NETLOGON] Add the netlogon service.
[reactos.git] / base / services / netlogon / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3 add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/netlogon.idl)
4 spec2def(netlogon.dll netlogon.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 netlogon.c
8 rpcserver.c
9 precomp.h)
10
11 add_library(netlogon MODULE
12 ${SOURCE}
13 netlogon.rc
14 ${CMAKE_CURRENT_BINARY_DIR}/netlogon_s.c
15 ${CMAKE_CURRENT_BINARY_DIR}/netlogon_stubs.c
16 ${CMAKE_CURRENT_BINARY_DIR}/netlogon.def)
17
18 set_module_type(netlogon win32dll UNICODE)
19 target_link_libraries(netlogon wine ${PSEH_LIB})
20 add_importlibs(netlogon advapi32 rpcrt4 msvcrt kernel32 ntdll)
21 add_pch(netlogon precomp.h SOURCE)
22 add_cd_file(TARGET netlogon DESTINATION reactos/system32 FOR all)