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 SHARED 7 umpnpmgr.c 8 umpnpmgr.rc 9 ${CMAKE_CURRENT_BINARY_DIR}/pnp_s.c 10 ${CMAKE_CURRENT_BINARY_DIR}/umpnpmgr_stubs.c 11 ${CMAKE_CURRENT_BINARY_DIR}/umpnpmgr.def) 12 13target_link_libraries(umpnpmgr wdmguid ${PSEH_LIB}) 14set_module_type(umpnpmgr win32dll UNICODE) 15add_importlibs(umpnpmgr advapi32 rpcrt4 userenv shlwapi msvcrt user32 kernel32 ntdll) 16add_cd_file(TARGET umpnpmgr DESTINATION reactos/system32 FOR all) 17