You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
set (HEADERS
|
|
|
|
Audio.h
|
|
|
|
Document.h
|
|
|
|
json_encode.h
|
|
|
|
PhotoSize.h
|
|
|
|
User.h
|
|
|
|
Chat.h
|
|
|
|
exec.h
|
|
|
|
Location.h
|
|
|
|
std.h
|
|
|
|
Venue.h
|
|
|
|
Contact.h
|
|
|
|
explode.h
|
|
|
|
MessageEntity.h
|
|
|
|
Sticker.h
|
|
|
|
Video.h
|
|
|
|
defines.h
|
|
|
|
http_build_query.h
|
|
|
|
Message.h
|
|
|
|
TelegramBot.h
|
|
|
|
Voice.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set (SOURCES
|
|
|
|
src/Audio.cc
|
|
|
|
src/Document.cc
|
|
|
|
src/json_encode.cc
|
|
|
|
src/PhotoSize.cc
|
|
|
|
src/User.cc
|
|
|
|
src/Chat.cc
|
|
|
|
src/exec.cc
|
|
|
|
src/Location.cc
|
|
|
|
src/std.cc
|
|
|
|
src/Venue.cc
|
|
|
|
src/Contact.cc
|
|
|
|
src/explode.cc
|
|
|
|
src/MessageEntity.cc
|
|
|
|
src/Sticker.cc
|
|
|
|
src/Video.cc
|
|
|
|
src/http_build_query.cc
|
|
|
|
src/Message.cc
|
|
|
|
src/TelegramBot.cc
|
|
|
|
src/Voice.cc
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
project(libtg)
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
|
|
|
|
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
|
|
|
|
pkg_check_modules(CURL REQUIRED curlpp)
|
|
|
|
|
|
|
|
include_directories(${JSONCPP_INCLUDE_DIRS})
|
|
|
|
include_directories(${CURL_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
set(LIBS ${LIBS} ${JSONCPP_LIBRARIES})
|
|
|
|
set(LIBS ${LIBS} ${CURL_LIBRARIES})
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
add_library(tg SHARED ${SOURCES})
|
|
|
|
|
|
|
|
install(TARGETS tg DESTINATION lib)
|
|
|
|
install(FILES ${HEADERS} DESTINATION include)
|
|
|
|
|