Fixed typos, added pkgconfig file
This commit is contained in:
parent
cb9e5561aa
commit
b161d1cc56
@ -1,23 +1,23 @@
|
|||||||
set (HEADERS
|
set (HEADERS
|
||||||
include/Audio.h
|
include/Telegram/Audio.h
|
||||||
include/Document.h
|
include/Telegram/Document.h
|
||||||
include/json_encode.h
|
include/Telegram/json_encode.h
|
||||||
include/PhotoSize.h
|
include/Telegram/PhotoSize.h
|
||||||
include/User.h
|
include/Telegram/User.h
|
||||||
include/Chat.h
|
include/Telegram/Chat.h
|
||||||
include/exec.h
|
include/Telegram/exec.h
|
||||||
include/Location.h
|
include/Telegram/Location.h
|
||||||
include/std.h
|
include/Telegram/std.h
|
||||||
include/Venue.h
|
include/Telegram/Venue.h
|
||||||
include/Contact.h
|
include/Telegram/Contact.h
|
||||||
include/explode.h
|
include/Telegram/explode.h
|
||||||
include/MessageEntity.h
|
include/Telegram/MessageEntity.h
|
||||||
include/Sticker.h
|
include/Telegram/Sticker.h
|
||||||
include/Video.h
|
include/Telegram/Video.h
|
||||||
include/http_build_query.h
|
include/Telegram/http_build_query.h
|
||||||
include/Message.h
|
include/Telegram/Message.h
|
||||||
include/TelegramBot.h
|
include/Telegram/TelegramBot.h
|
||||||
include/Voice.h
|
include/Telegram/Voice.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set (SOURCES
|
set (SOURCES
|
||||||
@ -44,7 +44,7 @@ set (SOURCES
|
|||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
project(libtg)
|
project(libtgbotpp)
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
|
|
||||||
@ -56,10 +56,11 @@ include_directories(${CURL_INCLUDE_DIRS})
|
|||||||
|
|
||||||
set(LIBS ${LIBS} ${JSONCPP_LIBRARIES})
|
set(LIBS ${LIBS} ${JSONCPP_LIBRARIES})
|
||||||
set(LIBS ${LIBS} ${CURL_LIBRARIES})
|
set(LIBS ${LIBS} ${CURL_LIBRARIES})
|
||||||
|
set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/pkgconfig")
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
add_library(tg SHARED ${SOURCES})
|
add_library(tgbotpp SHARED ${SOURCES})
|
||||||
|
|
||||||
install(TARGETS tg DESTINATION lib)
|
|
||||||
install(FILES ${HEADERS} DESTINATION include)
|
|
||||||
|
|
||||||
|
install(TARGETS tgbotpp DESTINATION lib)
|
||||||
|
install(FILES ${HEADERS} DESTINATION include/Telegram)
|
||||||
|
install(FILES tgbotpp.pc DESTINATION "${INSTALL_PKGCONFIG_DIR}")
|
||||||
|
14
tgbotpp.pc
Normal file
14
tgbotpp.pc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
prefix=/usr
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
includedir=${prefix}/include/Telegram
|
||||||
|
|
||||||
|
version = 0.0.1
|
||||||
|
|
||||||
|
name = tgbotpp
|
||||||
|
pkgname = libtgbotpp
|
||||||
|
|
||||||
|
Name: ${name}
|
||||||
|
Version: ${version}
|
||||||
|
Description: C++ library for Telegram bots
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Libs: -L${libdir} -ltgbotpp
|
Loading…
Reference in New Issue
Block a user