diff options
author | aunsane <aunsane@gmail.com> | 2018-04-27 21:33:17 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-04-27 21:33:17 +0300 |
commit | e1ec72eab6d00b3ba38e5932bc88920f103b6e4a (patch) | |
tree | 999de2725a83e30fbbf6576200525d4ef0c5fe38 /protocols/Telegram/tdlib/td/tddb/CMakeLists.txt | |
parent | b9ce1d4d98525490ca1a38e2d9fd4f3369adb3e0 (diff) |
Telegram: initial commit
- tdlib moved to telegram dir
Diffstat (limited to 'protocols/Telegram/tdlib/td/tddb/CMakeLists.txt')
-rw-r--r-- | protocols/Telegram/tdlib/td/tddb/CMakeLists.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/protocols/Telegram/tdlib/td/tddb/CMakeLists.txt b/protocols/Telegram/tdlib/td/tddb/CMakeLists.txt new file mode 100644 index 0000000000..531dcc5c02 --- /dev/null +++ b/protocols/Telegram/tdlib/td/tddb/CMakeLists.txt @@ -0,0 +1,55 @@ +cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) + +#SOURCE SETS +set(TDDB_SOURCE + td/db/binlog/Binlog.cpp + td/db/binlog/BinlogEvent.cpp + td/db/binlog/ConcurrentBinlog.cpp + td/db/binlog/detail/BinlogEventsBuffer.cpp + td/db/binlog/detail/BinlogEventsProcessor.cpp + + td/db/SqliteDb.cpp + td/db/SqliteStatement.cpp + td/db/SqliteKeyValueAsync.cpp + + td/db/detail/RawSqliteDb.cpp + + td/db/binlog/Binlog.h + td/db/binlog/BinlogInterface.h + td/db/binlog/BinlogEvent.h + td/db/binlog/BinlogHelper.h + td/db/binlog/ConcurrentBinlog.h + td/db/binlog/detail/BinlogEventsBuffer.h + td/db/binlog/detail/BinlogEventsProcessor.h + + td/db/BinlogKeyValue.h + td/db/DbKey.h + td/db/KeyValueSyncInterface.h + td/db/Pmc.h + td/db/SeqKeyValue.h + td/db/SqliteConnectionSafe.h + td/db/SqliteDb.h + td/db/SqliteKeyValue.h + td/db/SqliteKeyValueAsync.h + td/db/SqliteKeyValueSafe.h + td/db/SqliteStatement.h + td/db/TsSeqKeyValue.h + + td/db/detail/RawSqliteDb.h +) + +add_library(tddb STATIC ${TDDB_SOURCE}) +target_include_directories(tddb PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) +target_link_libraries(tddb PUBLIC tdactor tdutils PRIVATE tdsqlite) + +if (NOT CMAKE_CROSSCOMPILING) + add_executable(binlog_dump td/db/binlog/binlog_dump.cpp) + target_link_libraries(binlog_dump PRIVATE tddb) +endif() + +install(TARGETS tddb EXPORT TdTargets + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + RUNTIME DESTINATION bin + INCLUDES DESTINATION include +) |