
spec2def(psapi.dll psapi.spec)

list(APPEND SOURCE
    malloc.c
    psapi.c
    psapi.rc
    ${CMAKE_CURRENT_BINARY_DIR}/psapi.def)

add_library(psapi SHARED ${SOURCE})

set_module_type(psapi win32dll)
target_link_libraries(psapi epsapi ${PSEH_LIB})
add_importlibs(psapi msvcrt kernel32 ntdll)
add_importlib_target(psapi.spec)
add_pch(psapi precomp.h)
add_cd_file(TARGET psapi DESTINATION reactos/system32 FOR all)
