lib_stripe.cmake 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # This file is part of Telegram Desktop,
  2. # the official desktop application for the Telegram messaging service.
  3. #
  4. # For license and copyright information please follow this link:
  5. # https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. add_library(lib_stripe OBJECT)
  7. add_library(desktop-app::lib_stripe ALIAS lib_stripe)
  8. init_target(lib_stripe)
  9. set(stripe_src_loc ${src_loc}/payments)
  10. target_precompile_headers(lib_stripe PRIVATE ${stripe_src_loc}/stripe/stripe_pch.h)
  11. nice_target_sources(lib_stripe ${stripe_src_loc}
  12. PRIVATE
  13. stripe/stripe_address.h
  14. stripe/stripe_api_client.cpp
  15. stripe/stripe_api_client.h
  16. stripe/stripe_callbacks.h
  17. stripe/stripe_card.cpp
  18. stripe/stripe_card.h
  19. stripe/stripe_card_params.cpp
  20. stripe/stripe_card_params.h
  21. stripe/stripe_card_validator.cpp
  22. stripe/stripe_card_validator.h
  23. stripe/stripe_decode.cpp
  24. stripe/stripe_decode.h
  25. stripe/stripe_error.cpp
  26. stripe/stripe_error.h
  27. stripe/stripe_form_encodable.h
  28. stripe/stripe_form_encoder.cpp
  29. stripe/stripe_form_encoder.h
  30. stripe/stripe_payment_configuration.h
  31. stripe/stripe_token.cpp
  32. stripe/stripe_token.h
  33. smartglocal/smartglocal_api_client.cpp
  34. smartglocal/smartglocal_api_client.h
  35. smartglocal/smartglocal_callbacks.h
  36. smartglocal/smartglocal_card.cpp
  37. smartglocal/smartglocal_card.h
  38. smartglocal/smartglocal_error.cpp
  39. smartglocal/smartglocal_error.h
  40. smartglocal/smartglocal_token.cpp
  41. smartglocal/smartglocal_token.h
  42. stripe/stripe_pch.h
  43. )
  44. target_include_directories(lib_stripe
  45. PUBLIC
  46. ${stripe_src_loc}
  47. )
  48. target_link_libraries(lib_stripe
  49. PUBLIC
  50. desktop-app::lib_base
  51. desktop-app::lib_crl
  52. desktop-app::external_qt
  53. )