1 2spec2def(psapi.dll psapi.spec ADD_IMPORTLIB) 3 4list(APPEND SOURCE 5 psapi.c 6 psapi.rc 7 ${CMAKE_CURRENT_BINARY_DIR}/psapi.def) 8 9add_library(psapi MODULE ${SOURCE}) 10set_module_type(psapi win32dll) 11target_link_libraries(psapi ${PSEH_LIB}) 12add_importlibs(psapi msvcrt kernel32 ntdll) 13add_cd_file(TARGET psapi DESTINATION reactos/system32 FOR all) 14