1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
3spec2def(netsh.exe netsh.spec ADD_IMPORTLIB)
4
5list(APPEND SOURCE
6    context.c
7    help.c
8    helper.c
9    interpreter.c
10    netsh.c
11    precomp.h)
12
13add_executable(netsh ${SOURCE} netsh.rc ${CMAKE_CURRENT_BINARY_DIR}/netsh.def)
14
15set_target_properties(netsh
16    PROPERTIES
17    ENABLE_EXPORTS TRUE
18    DEFINE_SYMBOL "")
19
20set_module_type(netsh win32cui UNICODE)
21target_link_libraries(netsh conutils ${PSEH_LIB})
22add_importlibs(netsh advapi32 msvcrt user32 kernel32 ntdll)
23
24add_pch(netsh precomp.h SOURCE)
25add_cd_file(TARGET netsh DESTINATION reactos/system32 FOR all)
26