mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-26 16:43:33 +00:00
54 lines
1.5 KiB
CMake
54 lines
1.5 KiB
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/validate_special_target.cmake)
|
|
include(cmake/version.cmake)
|
|
desktop_app_parse_version(Telegram/build/version)
|
|
|
|
set(project_langs C CXX)
|
|
if (APPLE)
|
|
set(project_langs C CXX OBJC OBJCXX)
|
|
endif()
|
|
|
|
project(Telegram
|
|
LANGUAGES ${project_langs}
|
|
VERSION ${desktop_app_version_cmake}
|
|
DESCRIPTION "Official Telegram Desktop messenger"
|
|
HOMEPAGE_URL "https://desktop.telegram.org"
|
|
)
|
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Telegram)
|
|
|
|
get_filename_component(third_party_loc "Telegram/ThirdParty" REALPATH)
|
|
get_filename_component(submodules_loc "Telegram" REALPATH)
|
|
get_filename_component(cmake_helpers_loc "cmake" REALPATH)
|
|
|
|
include(cmake/variables.cmake)
|
|
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/nuget.cmake)
|
|
include(cmake/validate_d3d_compiler.cmake)
|
|
include(cmake/target_prepare_qrc.cmake)
|
|
|
|
include(cmake/options.cmake)
|
|
|
|
include(cmake/external/qt/package.cmake)
|
|
|
|
set(desktop_app_skip_libs
|
|
variant
|
|
)
|
|
|
|
add_subdirectory(cmake)
|
|
add_subdirectory(Telegram)
|