reactos/base/applications/network/telnet/CMakeLists.txt
Jérôme Gardou ed61512236 [CMAKE] Get rid of add_compile_flags_language macro
in favor of add_compile_options and the like with generator expressions
Also take this as an opportunity to remove the C++11 standard hack, GCC 8 now defaults to C++14
2020-10-20 21:44:54 +02:00

35 lines
930 B
CMake

list(APPEND SOURCE
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
precomp.h)
add_executable(telnet ${SOURCE} telnet.rc)
target_link_libraries(telnet cppstl)
set_target_cpp_properties(telnet WITH_EXCEPTIONS)
if (NOT MSVC)
target_compile_options(telnet PRIVATE -Wno-restrict $<$<COMPILE_LANGUAGE:CXX>:-Wno-narrowing>)
target_compile_definitions(telnet PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
endif()
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)