You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 821B

1234567891011121314151617181920212223242526272829303132333435363738
  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_LINK_LIBRARIES})
  28. endif()
  29. if(WIN32)
  30. target_link_libraries(rdr ws2_32)
  31. endif()
  32. if(UNIX)
  33. libtool_create_control_file(rdr)
  34. endif()