Simplify creation of TL_*_AUTO lists.

GitOrigin-RevId: 97a877bf265248209973ab98807b5ac9c49cd63f
This commit is contained in:
levlam 2020-01-24 03:09:49 +03:00
parent 43530660ec
commit 6e793813d1

View File

@ -9,25 +9,27 @@ file(MAKE_DIRECTORY auto/td/mtproto)
set(TL_TD_AUTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/auto PARENT_SCOPE)
set(TD_AUTO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/auto/td)
set(TL_TD_AUTO
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/mtproto/mtproto_api.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/mtproto/mtproto_api.h
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/mtproto/mtproto_api.hpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_api.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_api.h
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_api.hpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/telegram_api.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/telegram_api.h
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/telegram_api.hpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/secret_api.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/secret_api.h
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/secret_api.hpp
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.cpp
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.h
${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.hpp
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.cpp
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.h
${TD_AUTO_INCLUDE_DIR}/telegram/td_api.hpp
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.cpp
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.h
${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.hpp
${TD_AUTO_INCLUDE_DIR}/telegram/secret_api.cpp
${TD_AUTO_INCLUDE_DIR}/telegram/secret_api.h
${TD_AUTO_INCLUDE_DIR}/telegram/secret_api.hpp
PARENT_SCOPE
)
set(TL_TD_JSON_AUTO
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_api_json.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_api_json.h
${TD_AUTO_INCLUDE_DIR}/telegram/td_api_json.cpp
${TD_AUTO_INCLUDE_DIR}/telegram/td_api_json.h
PARENT_SCOPE
)
@ -35,15 +37,15 @@ set(TL_TD_API_TLO ${CMAKE_CURRENT_SOURCE_DIR}/scheme/td_api.tlo)
set(TL_TD_API_TLO ${TL_TD_API_TLO} PARENT_SCOPE)
set(TL_C_AUTO
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_tdc_api.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_tdc_api.h
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/td_tdc_api_inner.h
${TD_AUTO_INCLUDE_DIR}/telegram/td_tdc_api.cpp
${TD_AUTO_INCLUDE_DIR}/telegram/td_tdc_api.h
${TD_AUTO_INCLUDE_DIR}/telegram/td_tdc_api_inner.h
PARENT_SCOPE
)
set(TL_DOTNET_AUTO
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/TdDotNetApi.cpp
${CMAKE_CURRENT_SOURCE_DIR}/auto/td/telegram/TdDotNetApi.h
${TD_AUTO_INCLUDE_DIR}/telegram/TdDotNetApi.cpp
${TD_AUTO_INCLUDE_DIR}/telegram/TdDotNetApi.h
PARENT_SCOPE
)