2019-11-21 11:56:17 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop application for the Telegram messaging service.
|
|
|
|
#
|
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
|
2019-11-17 21:29:03 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2019-11-08 08:27:39 +00:00
|
|
|
cmake_policy(SET CMP0076 NEW)
|
|
|
|
cmake_policy(SET CMP0091 NEW)
|
|
|
|
|
2019-11-08 10:05:59 +00:00
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
2019-11-21 11:56:17 +00:00
|
|
|
include(cmake/variables.cmake)
|
2019-12-06 15:52:44 +00:00
|
|
|
include(cmake/version.cmake)
|
|
|
|
desktop_app_parse_version(Telegram/build/version)
|
2019-11-21 11:56:17 +00:00
|
|
|
|
2019-11-08 08:27:39 +00:00
|
|
|
project(Telegram
|
|
|
|
LANGUAGES C CXX
|
2019-12-06 15:52:44 +00:00
|
|
|
VERSION ${desktop_app_version_cmake}
|
2019-11-08 08:27:39 +00:00
|
|
|
DESCRIPTION "Official Telegram Desktop messenger"
|
|
|
|
HOMEPAGE_URL "https://desktop.telegram.org"
|
|
|
|
)
|
2019-12-06 10:17:40 +00:00
|
|
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Telegram)
|
2019-11-08 08:27:39 +00:00
|
|
|
|
2019-11-25 15:40:59 +00:00
|
|
|
include(cmake/nice_target_sources.cmake)
|
2019-12-03 16:11:03 +00:00
|
|
|
include(cmake/target_link_static_libraries.cmake)
|
2019-11-25 15:40:59 +00:00
|
|
|
include(cmake/target_link_frameworks.cmake)
|
2019-11-08 11:08:40 +00:00
|
|
|
include(cmake/init_target.cmake)
|
|
|
|
include(cmake/generate_target.cmake)
|
2019-11-25 15:40:59 +00:00
|
|
|
|
|
|
|
include(cmake/options.cmake)
|
|
|
|
|
2019-11-08 12:02:15 +00:00
|
|
|
include(cmake/external/qt/package.cmake)
|
2019-11-08 08:27:39 +00:00
|
|
|
|
|
|
|
add_subdirectory(cmake)
|
|
|
|
add_subdirectory(Telegram)
|