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 spapisup/cabinet.c 14 spapisup/fileqsup.c 15 spapisup/infsupp.c 16 cmdcons.c 17 console.c 18 consup.c 19 devinst.c 20 fmtchk.c 21 fslist.c 22 genlist.c 23 keytrans.c 24 mui.c 25 partlist.c 26 progress.c 27 usetup.c 28 usetup.h) 29 30add_executable(usetup ${SOURCE} usetup.rc) 31 32if(CMAKE_C_COMPILER_ID STREQUAL "Clang") 33 target_compile_options(usetup PRIVATE "-Wno-invalid-source-encoding") 34endif() 35 36add_pch(usetup usetup.h SOURCE) 37set_module_type(usetup nativecui) 38target_link_libraries(usetup inflib setuplib zlib_solo ext2lib vfatlib btrfslib chkstk) 39add_importlibs(usetup ntdll) 40add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest) 41