td_lang.cmake 952 B

123456789101112131415161718192021222324252627282930313233343536373839
  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_lang OBJECT)
  7. init_non_host_target(td_lang)
  8. add_library(tdesktop::td_lang ALIAS td_lang)
  9. include(cmake/generate_lang.cmake)
  10. generate_lang(td_lang ${res_loc}/langs/lang.strings)
  11. target_precompile_headers(td_lang PRIVATE ${src_loc}/lang/lang_pch.h)
  12. nice_target_sources(td_lang ${src_loc}
  13. PRIVATE
  14. lang/lang_file_parser.cpp
  15. lang/lang_file_parser.h
  16. lang/lang_hardcoded.h
  17. lang/lang_keys.cpp
  18. lang/lang_keys.h
  19. lang/lang_pch.h
  20. lang/lang_tag.cpp
  21. lang/lang_tag.h
  22. lang/lang_text_entity.cpp
  23. lang/lang_text_entity.h
  24. lang/lang_values.h
  25. )
  26. target_include_directories(td_lang
  27. PUBLIC
  28. ${src_loc}
  29. )
  30. target_link_libraries(td_lang
  31. PUBLIC
  32. desktop-app::lib_ui
  33. )