41 lines
1.2 KiB
CMake
41 lines
1.2 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)
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
project(Telegram
|
|
LANGUAGES C CXX
|
|
VERSION 0.1
|
|
DESCRIPTION "Official Telegram Desktop messenger"
|
|
HOMEPAGE_URL "https://desktop.telegram.org"
|
|
)
|
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Telegram)
|
|
|
|
macro(add_module name)
|
|
set(TELEGRAM_MODULE_NAME "${name}")
|
|
set(TELEGRAM_MODULE_GLOBNAME "${TELEGRAM_MODULE_CATEG}_${TELEGRAM_MODULE_NAME}")
|
|
add_subdirectory("${TELEGRAM_MODULE_NAME}")
|
|
endmacro()
|
|
|
|
macro(init_module)
|
|
add_library("${TELEGRAM_MODULE_GLOBNAME}" STATIC ${TELEGRAM_MODULE_SOURCES})
|
|
|
|
endmacro()
|
|
|
|
macro(init_module_extern)
|
|
add_library("${TELEGRAM_MODULE_GLOBNAME}" INTERFACE IMPORTED)
|
|
target_link_libraries("${TELEGRAM_MODULE_GLOBNAME}" INTERFACE ${TELEGRAM_MODULE_SOURCES})
|
|
|
|
endmacro()
|
|
|
|
#include_directories(src/Telegram src/TelegramLibs)
|
|
add_subdirectory(src/Telegram)
|
|
add_subdirectory(src/TelegramLibs)
|
|
add_subdirectory(src/External)
|
|
|