1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/pnp.idl)
4spec2def(umpnpmgr.dll umpnpmgr.spec ADD_IMPORTLIB)
5
6add_library(umpnpmgr MODULE
7    event.c
8    install.c
9    rpcserver.c
10    umpnpmgr.c
11    umpnpmgr.rc
12    ${CMAKE_CURRENT_BINARY_DIR}/pnp_s.c
13    ${CMAKE_CURRENT_BINARY_DIR}/umpnpmgr_stubs.c
14    ${CMAKE_CURRENT_BINARY_DIR}/umpnpmgr.def)
15
16target_link_libraries(umpnpmgr wdmguid ${PSEH_LIB})
17set_module_type(umpnpmgr win32dll UNICODE)
18add_importlibs(umpnpmgr advapi32 rpcrt4 userenv shlwapi msvcrt user32 kernel32 ntdll)
19add_cd_file(TARGET umpnpmgr DESTINATION reactos/system32 FOR all)
20