1 2add_definitions(${I18N_DEFS}) 3 4include_directories( 5 ${CMAKE_CURRENT_SOURCE_DIR} 6 ${REACTOS_SOURCE_DIR}/sdk/lib/inflib 7 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib 8 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers) 9 10list(APPEND SOURCE 11 interface/usetup.c 12 interface/devinst.c 13 interface/consup.c 14 native/utils/keytrans.c 15 native/utils/console.c 16 native/fslist.c 17 native/console.c 18 bootsup.c 19 cabinet.c 20 chkdsk.c 21 cmdcons.c 22 drivesup.c 23 filesup.c 24 filequeue.c 25 format.c 26 fslist.c 27 genlist.c 28 inffile.c 29 inicache.c 30 mui.c 31 partlist.c 32 progress.c 33 registry.c 34 settings.c 35 usetup.h) 36 37add_executable(usetup ${SOURCE} usetup.rc) 38 39if(USE_CLANG_CL) 40 add_target_compile_flags(usetup "-Wno-invalid-source-encoding") 41endif() 42 43target_link_libraries(usetup zlib inflib ext2lib vfatlib) 44set_module_type(usetup nativecui) 45add_importlibs(usetup ntdll) 46add_pch(usetup usetup.h SOURCE) 47add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest) 48