b0916c0a24543af603f1b3b23a3f9a3431f1d858
[reactos.git] / base / applications / network / telnet / CMakeLists.txt
1
2 set_cpp(WITH_EXCEPTIONS WITH_STL)
3
4 add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
5
6 if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
7 add_compile_flags("-Wno-restrict")
8 endif()
9
10 list(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
32 if(NOT MSVC)
33 add_compile_flags_language("-Wno-narrowing" "CXX")
34 endif()
35
36 add_executable(telnet ${SOURCE} telnet.rc)
37 set_module_type(telnet win32cui)
38 add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll)
39 add_pch(telnet precomp.h SOURCE)
40 add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)