1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl) 3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/netlogon.idl) 4spec2def(netlogon.dll netlogon.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 netlogon.c 8 rpcserver.c 9 precomp.h) 10 11add_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 18set_module_type(netlogon win32dll UNICODE) 19target_link_libraries(netlogon wine ${PSEH_LIB}) 20add_importlibs(netlogon advapi32 rpcrt4 msvcrt kernel32 ntdll) 21add_pch(netlogon precomp.h SOURCE) 22add_cd_file(TARGET netlogon DESTINATION reactos/system32 FOR all) 23