summaryrefslogtreecommitdiff
path: root/libs/tdlib/td/example/cpp/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libs/tdlib/td/example/cpp/CMakeLists.txt')
-rw-r--r--libs/tdlib/td/example/cpp/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/tdlib/td/example/cpp/CMakeLists.txt b/libs/tdlib/td/example/cpp/CMakeLists.txt
new file mode 100644
index 0000000000..3e7794d4fa
--- /dev/null
+++ b/libs/tdlib/td/example/cpp/CMakeLists.txt
@@ -0,0 +1,13 @@
+cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+
+project(TdExample VERSION 1.0 LANGUAGES CXX)
+
+find_package(Td 1.2.0 REQUIRED)
+
+add_executable(tdjson_example tdjson_example.cpp)
+target_link_libraries(tdjson_example PRIVATE Td::TdJson)
+set_property(TARGET tdjson_example PROPERTY CXX_STANDARD 11)
+
+add_executable(td_example td_example.cpp)
+target_link_libraries(td_example PRIVATE Td::TdStatic)
+set_property(TARGET td_example PROPERTY CXX_STANDARD 14)