mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-12-25 16:18:53 +01:00
92c7695981
Most streams are backed by a memory buffer. Create common base classes for this functionality to avoid code duplication.
33 lines
661 B
CMake
33 lines
661 B
CMake
include_directories(${CMAKE_SOURCE_DIR}/common ${ZLIB_INCLUDE_DIRS})
|
|
|
|
add_library(rdr STATIC
|
|
BufferedInStream.cxx
|
|
BufferedOutStream.cxx
|
|
Exception.cxx
|
|
FdInStream.cxx
|
|
FdOutStream.cxx
|
|
FileInStream.cxx
|
|
HexInStream.cxx
|
|
HexOutStream.cxx
|
|
InStream.cxx
|
|
RandomStream.cxx
|
|
TLSException.cxx
|
|
TLSInStream.cxx
|
|
TLSOutStream.cxx
|
|
ZlibInStream.cxx
|
|
ZlibOutStream.cxx)
|
|
|
|
set(RDR_LIBRARIES ${ZLIB_LIBRARIES} os)
|
|
if(GNUTLS_FOUND)
|
|
set(RDR_LIBRARIES ${RDR_LIBRARIES} ${GNUTLS_LIBRARIES})
|
|
endif()
|
|
if(WIN32)
|
|
set(RDR_LIBRARIES ${RDR_LIBRARIES} ws2_32)
|
|
endif()
|
|
|
|
target_link_libraries(rdr ${RDR_LIBRARIES})
|
|
|
|
if(UNIX)
|
|
libtool_create_control_file(rdr)
|
|
endif()
|