[NEWDEV] When a device install fails, set the 'Unknown' device class for that device
[reactos.git] / base / setup / usetup / CMakeLists.txt
1
2 add_definitions(${I18N_DEFS})
3
4 include_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
12 list(APPEND SOURCE
13 spapisup/cabinet.c
14 spapisup/fileqsup.c
15 spapisup/infsupp.c
16 chkdsk.c
17 cmdcons.c
18 console.c
19 consup.c
20 devinst.c
21 format.c
22 fslist.c
23 genlist.c
24 keytrans.c
25 mui.c
26 partlist.c
27 progress.c
28 usetup.c
29 usetup.h)
30
31 add_executable(usetup ${SOURCE} usetup.rc)
32
33 if(USE_CLANG_CL)
34 target_compile_options(usetup PRIVATE "-Wno-invalid-source-encoding")
35 endif()
36
37 add_pch(usetup usetup.h SOURCE)
38 set_module_type(usetup nativecui)
39 target_link_libraries(usetup inflib setuplib zlib_solo ext2lib vfatlib btrfslib chkstk)
40 add_importlibs(usetup ntdll)
41 add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)