diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c76b640..627af9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ option(BUILD_SHARED_LIBS "Build tgbot-cpp shared/static library." OFF) option(BUILD_DOCUMENTATION "Build doxygen API documentation." OFF) # sources -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) if(WIN32) @@ -38,13 +38,16 @@ set(SRC_LIST src/tools/FileTools.cpp src/tools/StringTools.cpp src/types/BotCommandScope.cpp + src/types/ChatBoostSource.cpp src/types/ChatMember.cpp src/types/InlineQueryResult.cpp src/types/InputFile.cpp src/types/InputMedia.cpp src/types/InputMessageContent.cpp src/types/MenuButton.cpp - src/types/PassportElementError.cpp) + src/types/MessageOrigin.cpp + src/types/PassportElementError.cpp + src/types/ReactionType.cpp) # libs ## threads @@ -76,6 +79,7 @@ link_directories(${Boost_LIBRARY_DIR_RELEASE}) if(NOT Boost_USE_STATIC_LIBS) add_definitions(-DBOOST_ALL_DYN_LINK) endif() +add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS) set(LIB_LIST ${CMAKE_THREAD_LIBS_INIT} @@ -88,6 +92,10 @@ if (CURL_FOUND) set(LIB_LIST ${LIB_LIST} ${CURL_LIBRARIES}) endif() +if (WIN32) + set(LIB_LIST ${LIB_LIST} Ws2_32) +endif() + # building project add_library(${PROJECT_NAME} ${SRC_LIST}) target_include_directories(${PROJECT_NAME} PUBLIC |