2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-08 18:13:52 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
src/ansiprsr.cpp
|
|
|
|
src/keytrans.cpp
|
|
|
|
src/tcharmap.cpp
|
|
|
|
src/tconsole.cpp
|
|
|
|
src/tkeydef.cpp
|
|
|
|
src/tkeymap.cpp
|
|
|
|
src/tmapldr.cpp
|
|
|
|
src/tmouse.cpp
|
|
|
|
src/tnclass.cpp
|
|
|
|
src/tnclip.cpp
|
|
|
|
src/tncon.cpp
|
|
|
|
src/tnconfig.cpp
|
|
|
|
src/tnerror.cpp
|
|
|
|
src/tnetwork.cpp
|
|
|
|
src/tnmain.cpp
|
|
|
|
src/tnmisc.cpp
|
|
|
|
src/tscript.cpp
|
|
|
|
src/tscroll.cpp
|
|
|
|
src/ttelhndl.cpp
|
2014-02-08 18:13:52 +00:00
|
|
|
precomp.h)
|
2013-06-17 20:41:42 +00:00
|
|
|
|
2014-02-08 18:13:52 +00:00
|
|
|
add_executable(telnet ${SOURCE} telnet.rc)
|
2020-09-18 07:34:18 +00:00
|
|
|
target_link_libraries(telnet cppstl)
|
|
|
|
set_target_cpp_properties(telnet WITH_EXCEPTIONS)
|
2021-04-09 00:58:19 +00:00
|
|
|
|
2021-06-29 08:03:28 +00:00
|
|
|
if (MSVC)
|
|
|
|
# C4838: conversion from 'int' to 'SHORT' requires a narrowing conversion
|
|
|
|
# C4996: 'strnicmp': Deprecated POSIX name, Try _strnicmp instead!
|
|
|
|
target_compile_options(telnet PRIVATE /wd4838 /wd4996)
|
|
|
|
endif()
|
|
|
|
|
2020-09-18 14:18:24 +00:00
|
|
|
if (NOT MSVC)
|
|
|
|
target_compile_definitions(telnet PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
|
|
|
|
endif()
|
2021-04-09 00:58:19 +00:00
|
|
|
|
2022-05-25 23:03:50 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2021-04-09 00:58:19 +00:00
|
|
|
target_compile_options(telnet PRIVATE -Wno-restrict $<$<COMPILE_LANGUAGE:CXX>:-Wno-narrowing>)
|
|
|
|
endif()
|
|
|
|
|
2014-02-08 18:13:52 +00:00
|
|
|
set_module_type(telnet win32cui)
|
|
|
|
add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll)
|
|
|
|
add_pch(telnet precomp.h SOURCE)
|
|
|
|
add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)
|