Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

CMakeLists.txt 877B

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