2021-10-07 16:35:41 +02:00
|
|
|
cmake_minimum_required(VERSION 3.4 FATAL_ERROR)
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
project(TdExample VERSION 1.0 LANGUAGES CXX)
|
|
|
|
|
2023-04-21 12:15:29 +02:00
|
|
|
find_package(Td 1.8.14 REQUIRED)
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
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)
|