2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-22 10:17:10 +00:00
tdesktop/CMakeLists.txt

57 lines
1.7 KiB
CMake
Raw Normal View History

2019-11-21 14:56:17 +03: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
cmake_minimum_required(VERSION 3.25...3.31)
2019-11-08 11:27:39 +03:00
2019-11-08 13:05:59 +03:00
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(cmake/validate_special_target.cmake)
include(cmake/version.cmake)
desktop_app_parse_version(Telegram/build/version)
2019-11-21 14:56:17 +03:00
2019-11-08 11:27:39 +03:00
project(Telegram
2025-05-31 21:17:05 +04:00
LANGUAGES C CXX
VERSION ${desktop_app_version_cmake}
2019-11-08 11:27:39 +03:00
DESCRIPTION "Official Telegram Desktop messenger"
HOMEPAGE_URL "https://desktop.telegram.org"
)
2025-05-31 21:17:05 +04:00
if (APPLE)
enable_language(OBJC OBJCXX)
endif()
2019-12-06 13:17:40 +03:00
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Telegram)
2019-11-08 11:27:39 +03:00
2020-03-04 13:19:57 +04:00
get_filename_component(third_party_loc "Telegram/ThirdParty" REALPATH)
get_filename_component(submodules_loc "Telegram" REALPATH)
get_filename_component(cmake_helpers_loc "cmake" REALPATH)
2020-03-04 13:19:57 +04:00
2022-12-27 14:37:58 +04:00
if (NOT DESKTOP_APP_USE_PACKAGED AND WIN32)
set(Python3_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/python/Scripts/python)
2022-12-27 14:37:58 +04:00
endif()
include(cmake/variables.cmake)
2019-11-25 18:40:59 +03:00
include(cmake/nice_target_sources.cmake)
include(cmake/target_compile_options_if_exists.cmake)
2023-05-31 08:28:00 +04:00
include(cmake/target_link_frameworks.cmake)
include(cmake/target_link_options_if_exists.cmake)
2019-11-08 14:08:40 +03:00
include(cmake/init_target.cmake)
include(cmake/generate_target.cmake)
include(cmake/nuget.cmake)
include(cmake/validate_d3d_compiler.cmake)
2021-10-27 20:40:21 +04:00
include(cmake/target_prepare_qrc.cmake)
2019-11-25 18:40:59 +03:00
include(cmake/options.cmake)
2019-11-08 15:02:15 +03:00
include(cmake/external/qt/package.cmake)
2019-11-08 11:27:39 +03:00
2020-08-31 13:56:28 +04:00
set(desktop_app_skip_libs
2024-03-14 21:50:58 +04:00
glibmm
2020-08-31 13:56:28 +04:00
variant
)
2019-11-08 11:27:39 +03:00
add_subdirectory(cmake)
add_subdirectory(Telegram)