1
2set_cpp(WITH_EXCEPTIONS WITH_STL)
3
4add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
5
6if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
7    add_compile_flags("-Wno-restrict")
8endif()
9
10list(APPEND SOURCE
11    src/ansiprsr.cpp
12    src/keytrans.cpp
13    src/tcharmap.cpp
14    src/tconsole.cpp
15    src/tkeydef.cpp
16    src/tkeymap.cpp
17    src/tmapldr.cpp
18    src/tmouse.cpp
19    src/tnclass.cpp
20    src/tnclip.cpp
21    src/tncon.cpp
22    src/tnconfig.cpp
23    src/tnerror.cpp
24    src/tnetwork.cpp
25    src/tnmain.cpp
26    src/tnmisc.cpp
27    src/tscript.cpp
28    src/tscroll.cpp
29    src/ttelhndl.cpp
30    precomp.h)
31
32if(NOT MSVC)
33    add_compile_flags_language("-Wno-narrowing" "CXX")
34endif()
35
36add_executable(telnet ${SOURCE} telnet.rc)
37set_module_type(telnet win32cui)
38add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll)
39add_pch(telnet precomp.h SOURCE)
40add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)
41