1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/fmifs) 4 5list(APPEND SOURCE 6 active.c 7 add.c 8 assign.c 9 attach.c 10 attributes.c 11 automount.c 12 break.c 13 clean.c 14 compact.c 15 convert.c 16 create.c 17 delete.c 18 detach.c 19 detail.c 20 diskpart.c 21 dump.c 22 expand.c 23 extend.c 24 filesystems.c 25 format.c 26 gpt.c 27 help.c 28 import.c 29 inactive.c 30 interpreter.c 31 list.c 32 merge.c 33 misc.c 34 offline.c 35 online.c 36 partlist.c 37 recover.c 38 remove.c 39 repair.c 40 rescan.c 41 retain.c 42 san.c 43 select.c 44 setid.c 45 shrink.c 46 uniqueid.c 47 diskpart.h) 48 49add_executable(diskpart ${SOURCE} diskpart.rc) 50add_pch(diskpart diskpart.h SOURCE) 51add_message_headers(UNICODE diskpart_msg.mc) 52add_dependencies(diskpart diskpart_msg) 53 54set_module_type(diskpart win32cui UNICODE) 55target_link_libraries(diskpart conutils ${PSEH_LIB}) 56add_importlibs(diskpart fmifs advapi32 msvcrt kernel32 ntdll) 57 58if(MSVC) 59 add_importlibs(diskpart ntdll) 60endif() 61 62add_cd_file(TARGET diskpart DESTINATION reactos/system32 FOR all) 63