-set_unicode()
-include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl)
+
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
-add_executable(umpnpmgr umpnpmgr.c umpnpmgr.rc)
+add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/pnp.idl)
+
-target_link_libraries(umpnpmgr pnp_server wdmguid ${PSEH_LIB})
+add_executable(umpnpmgr
+ umpnpmgr.c
+ umpnpmgr.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/pnp_s.c)
-set_module_type(umpnpmgr win32cui)
-add_importlibs(umpnpmgr
- advapi32
- rpcrt4
- userenv
- msvcrt
- kernel32
- ntdll)
+target_link_libraries(umpnpmgr
+ wdmguid
+ ${PSEH_LIB})
-add_cab_target(umpnpmgr 1)
\ No newline at end of file
+set_module_type(umpnpmgr win32cui UNICODE)
+add_importlibs(umpnpmgr advapi32 rpcrt4 userenv msvcrt kernel32 ntdll)
+add_cd_file(TARGET umpnpmgr DESTINATION reactos/system32 FOR all)