[USETUP]
[reactos.git] / reactos / base / setup / usetup / CMakeLists.txt
1
2 add_definitions(${I18N_DEFS})
3 include_directories(
4 ${CMAKE_CURRENT_SOURCE_DIR}
5 ${REACTOS_SOURCE_DIR}/lib/inflib
6 ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib
7 ${REACTOS_SOURCE_DIR}/include/reactos/drivers)
8
9 list(APPEND SOURCE
10 interface/usetup.c
11 interface/devinst.c
12 interface/consup.c
13 native/utils/keytrans.c
14 native/utils/console.c
15 native/fslist.c
16 native/console.c
17 bootsup.c
18 cabinet.c
19 chkdsk.c
20 drivesup.c
21 filesup.c
22 filequeue.c
23 format.c
24 fslist.c
25 genlist.c
26 inffile.c
27 inicache.c
28 mui.c
29 partlist.c
30 progress.c
31 registry.c
32 settings.c
33 usetup.h)
34
35 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
36 #FIXME: Investigate Clang "illegal character encoding in string literal" warning
37 set_property(SOURCE mui.c APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-invalid-source-encoding")
38 endif()
39
40 add_executable(usetup ${SOURCE} usetup.rc)
41 target_link_libraries(usetup zlib inflib ext2lib vfatlib)
42 set_module_type(usetup nativecui)
43 add_importlibs(usetup ntdll)
44 add_pch(usetup usetup.h SOURCE)
45 add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)