blob: 429d0c72a2c0aa792f9fb6a93a142ca6cab27669 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
include_directories(${CMAKE_SOURCE_DIR}/common)
include_directories(SYSTEM ${ZLIB_INCLUDE_DIRS})
add_library(rdr STATIC
AESInStream.cxx
AESOutStream.cxx
BufferedInStream.cxx
BufferedOutStream.cxx
Exception.cxx
FdInStream.cxx
FdOutStream.cxx
FileInStream.cxx
HexInStream.cxx
HexOutStream.cxx
RandomStream.cxx
TLSException.cxx
TLSInStream.cxx
TLSOutStream.cxx
ZlibInStream.cxx
ZlibOutStream.cxx)
target_link_libraries(rdr ${ZLIB_LIBRARIES} os)
if(GNUTLS_FOUND)
include_directories(SYSTEM ${GNUTLS_INCLUDE_DIR})
target_link_libraries(rdr ${GNUTLS_LIBRARIES})
endif()
if (NETTLE_FOUND)
include_directories(SYSTEM ${NETTLE_INCLUDE_DIRS})
target_link_libraries(rdr ${NETTLE_LIBRARIES})
target_link_directories(rdr PUBLIC ${NETTLE_LIBRARY_DIRS})
endif()
if(WIN32)
target_link_libraries(rdr ws2_32)
endif()
if(UNIX)
libtool_create_control_file(rdr)
endif()
|