diff --git a/CMakeLists.txt b/CMakeLists.txt index 69d25c945..e4527b8da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,13 +239,9 @@ set(TL_TD_API_SOURCE td/tl/TlObject.h ) +set_source_files_properties(${TL_MTPROTO_AUTO_SOURCE} PROPERTIES GENERATED TRUE) + set_source_files_properties(${TL_TD_AUTO_SOURCE} PROPERTIES GENERATED TRUE) -set(TL_TD_SCHEME_SOURCE - ${TL_TD_AUTO_SOURCE} - td/tl/TlObject.h - td/tl/tl_object_parse.h - td/tl/tl_object_store.h -) set_source_files_properties(${TL_TD_JSON_AUTO_SOURCE} PROPERTIES GENERATED TRUE) set(TL_TD_JSON_SOURCE @@ -997,7 +993,13 @@ set(TDLIB_SOURCE td/telegram/VoiceNotesManager.hpp td/telegram/WebApp.hpp - ${TL_TD_SCHEME_SOURCE} + ${TL_MTPROTO_AUTO_SOURCE} + + ${TL_TD_AUTO_SOURCE} + + td/tl/TlObject.h + td/tl/tl_object_parse.h + td/tl/tl_object_store.h ${CMAKE_CURRENT_BINARY_DIR}/td/telegram/GitCommitHash.cpp ) diff --git a/td/generate/CMakeLists.txt b/td/generate/CMakeLists.txt index d822357c5..d417c0784 100644 --- a/td/generate/CMakeLists.txt +++ b/td/generate/CMakeLists.txt @@ -14,10 +14,14 @@ 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_SOURCE +set(TL_MTPROTO_AUTO_SOURCE ${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.cpp ${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.h ${TD_AUTO_INCLUDE_DIR}/mtproto/mtproto_api.hpp + PARENT_SCOPE +) + +set(TL_TD_AUTO_SOURCE ${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.cpp ${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.h ${TD_AUTO_INCLUDE_DIR}/telegram/telegram_api.hpp