xref: /reactos/base/setup/usetup/CMakeLists.txt (revision 11345aed)
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    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
31add_executable(usetup ${SOURCE} usetup.rc)
32
33if(USE_CLANG_CL)
34    target_compile_options(usetup PRIVATE "-Wno-invalid-source-encoding")
35endif()
36
37add_pch(usetup usetup.h SOURCE)
38set_module_type(usetup nativecui)
39target_link_libraries(usetup inflib setuplib zlib_solo ext2lib vfatlib btrfslib chkstk)
40add_importlibs(usetup ntdll)
41add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)
42