xref: /reactos/base/shell/cmd/CMakeLists.txt (revision 84ccccab)
1
2add_definitions(
3    -DANONYMOUSUNIONS
4    -D_DEBUG_MEM)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
8
9list(APPEND SOURCE
10    alias.c
11    assoc.c
12    attrib.c
13    batch.c
14    beep.c
15    call.c
16    choice.c
17    cls.c
18    cmd.c
19    cmddbg.c
20    cmdinput.c
21    cmdtable.c
22    color.c
23    console.c
24    copy.c
25    ctty.c
26    date.c
27    del.c
28    delay.c
29    dir.c
30    dirstack.c
31    echo.c
32    error.c
33    filecomp.c
34    for.c
35    free.c
36    goto.c
37    history.c
38    if.c
39    internal.c
40    label.c
41    locale.c
42    memory.c
43    misc.c
44    mklink.c
45    move.c
46    msgbox.c
47    parser.c
48    path.c
49    pause.c
50    prompt.c
51    redir.c
52    ren.c
53    replace.c
54    screen.c
55    set.c
56    setlocal.c
57    shift.c
58    start.c
59    strtoclr.c
60    time.c
61    timer.c
62    title.c
63    type.c
64    ver.c
65    verify.c
66    vol.c
67    where.c
68    window.c
69    precomp.h)
70
71add_rc_deps(cmd.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/terminal.ico)
72add_executable(cmd ${SOURCE} cmd.rc)
73add_pch(cmd precomp.h SOURCE)
74set_module_type(cmd win32cui UNICODE)
75target_link_libraries(cmd wine)
76target_link_libraries(cmd conutils ${PSEH_LIB})
77add_importlibs(cmd advapi32 user32 msvcrt kernel32 ntdll)
78add_cd_file(TARGET cmd DESTINATION reactos/system32 FOR all)
79