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