[USETUP] Moving around some code.
[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 bootsup.c
14 cabinet.c
15 chkdsk.c
16 cmdcons.c
17 console.c
18 consup.c
19 devinst.c
20 filesup.c
21 filequeue.c
22 format.c
23 fslist.c
24 genlist.c
25 inffile.c
26 keytrans.c
27 mui.c
28 partlist.c
29 progress.c
30 registry.c
31 settings.c
32 usetup.c
33 usetup.h)
34
35 add_executable(usetup ${SOURCE} usetup.rc)
36
37 if(USE_CLANG_CL)
38 add_target_compile_flags(usetup "-Wno-invalid-source-encoding")
39 endif()
40
41 add_pch(usetup usetup.h SOURCE)
42 set_module_type(usetup nativecui)
43 target_link_libraries(usetup inflib setuplib zlib_solo ext2lib vfatlib btrfslib)
44 add_importlibs(usetup ntdll)
45 add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)