summarylogtreecommitdiffstats
path: root/CMakeLists.inj
blob: d3478903f27103d83f140aaac9cf7510bbea60f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# The text will be put into the appropriate CMakeLists by the PKGBUILD

# Avoid rpath compiler parameter
set_target_properties(Telegram PROPERTIES SKIP_BUILD_RPATH TRUE)

# This makes up for patch of gyp utility, supporting precompiled headers. If
# Telegram/Patches/gyp.diff file will be changed in future, please check these
# lines.
include(../../Telegram/gyp/helpers/PrecompiledHeader.cmake)
add_precompiled_header(Telegram ../../Telegram/SourceFiles/stdafx.h)
add_precompiled_header(lib_base ../../Telegram/lib_base/base/base_pch.h)
add_precompiled_header(lib_export ../../Telegram/SourceFiles/export/export_pch.h)
add_precompiled_header(lib_storage ../../Telegram/SourceFiles/storage/storage_pch.h)
add_precompiled_header(lib_mtproto ../../Telegram/SourceFiles/mtproto/mtp_pch.h)
add_precompiled_header(lib_ui ../../Telegram/lib_ui/ui/ui_pch.h)
add_precompiled_header(lib_spellcheck ../../Telegram/lib_spellcheck/spellcheck/spellcheck_pch.h)

# You can discover new PCHs using this link:
# https://github.com/telegramdesktop/tdesktop/search?q=pch_header&unscoped_q=pch_header

# vim: ft=cmake