34 lines
909 B
CMake
34 lines
909 B
CMake
# 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
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
cmake_policy(SET CMP0076 NEW)
|
|
cmake_policy(SET CMP0091 NEW)
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
include(cmake/variables.cmake)
|
|
|
|
project(Telegram
|
|
LANGUAGES C CXX
|
|
VERSION 1.9.0
|
|
DESCRIPTION "Official Telegram Desktop messenger"
|
|
HOMEPAGE_URL "https://desktop.telegram.org"
|
|
)
|
|
|
|
include(cmake/nice_target_sources.cmake)
|
|
include(cmake/target_link_static_libraries.cmake)
|
|
include(cmake/target_link_frameworks.cmake)
|
|
include(cmake/init_target.cmake)
|
|
include(cmake/generate_target.cmake)
|
|
|
|
include(cmake/options.cmake)
|
|
|
|
include(cmake/external/qt/package.cmake)
|
|
|
|
add_subdirectory(cmake)
|
|
add_subdirectory(Telegram)
|