mirror of
https://github.com/kirirururu/telebotxx.git
synced 2026-06-14 18:30:43 +00:00
29 lines
824 B
CMake
29 lines
824 B
CMake
message(STATUS "Configuring telebotxx")
|
|
|
|
# Add required compiler flags
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
|
|
|
set(SOURCE_FILES Attachment.cpp
|
|
BotApi.cpp
|
|
Chat.cpp
|
|
JsonObjects.cpp
|
|
Logging.cpp
|
|
Message.cpp
|
|
Update.cpp
|
|
User.cpp
|
|
ReplyMarkup.cpp
|
|
RequestOptions.cpp
|
|
SendMessageRequest.cpp
|
|
SendPhotoRequest.cpp
|
|
)
|
|
|
|
add_library(telebotxx ${SOURCE_FILES})
|
|
target_include_directories(telebotxx PUBLIC ${telebotxx_SOURCE_DIR}/include)
|
|
target_include_directories(telebotxx PRIVATE ${telebotxx_SOURCE_DIR}/include/telebotxx)
|
|
target_link_libraries(telebotxx
|
|
PRIVATE
|
|
${CPR_LIBRARIES}
|
|
rapidjson
|
|
)
|
|
|
|
message(STATUS "Configuring telebotxx - done")
|