td_iv.cmake 956 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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(td_iv OBJECT)
  7. init_non_host_target(td_iv)
  8. add_library(tdesktop::td_iv ALIAS td_iv)
  9. target_precompile_headers(td_iv PRIVATE ${src_loc}/iv/iv_pch.h)
  10. nice_target_sources(td_iv ${src_loc}
  11. PRIVATE
  12. iv/iv_controller.cpp
  13. iv/iv_controller.h
  14. iv/iv_data.cpp
  15. iv/iv_data.h
  16. iv/iv_delegate.h
  17. iv/iv_pch.h
  18. iv/iv_prepare.cpp
  19. iv/iv_prepare.h
  20. )
  21. nice_target_sources(td_iv ${res_loc}
  22. PRIVATE
  23. iv_html/page.css
  24. iv_html/page.js
  25. )
  26. target_include_directories(td_iv
  27. PUBLIC
  28. ${src_loc}
  29. )
  30. target_link_libraries(td_iv
  31. PUBLIC
  32. desktop-app::lib_ui
  33. tdesktop::td_scheme
  34. PRIVATE
  35. desktop-app::lib_webview
  36. desktop-app::external_ada
  37. tdesktop::td_lang
  38. tdesktop::td_ui
  39. )