[USETUP] Use the smaller zlib_solo instead of the full zlib. CORE-14290
[reactos.git] / base / setup / usetup / CMakeLists.txt
1
2 add_definitions(${I18N_DEFS})
3
4 include_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
10 list(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
37 add_executable(usetup ${SOURCE} usetup.rc)
38
39 if(USE_CLANG_CL)
40 add_target_compile_flags(usetup "-Wno-invalid-source-encoding")
41 endif()
42
43 target_link_libraries(usetup zlib_solo inflib ext2lib vfatlib)
44 set_module_type(usetup nativecui)
45 add_importlibs(usetup ntdll)
46 add_pch(usetup usetup.h SOURCE)
47 add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)