mirror of
https://github.com/UltraCoderRU/telebotxx.git
synced 2026-01-28 04:05:13 +00:00
21 lines
522 B
CMake
21 lines
522 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
message(STATUS "Configuring telebotxx")
|
|
|
|
# Add required compiler flags
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
|
|
|
# Put compiled library to 'lib' directory
|
|
set(LIBRARY_OUTPUT_PATH "../lib")
|
|
|
|
set(SOURCE_FILES Attachment.cpp
|
|
BotApi.cpp
|
|
Chat.cpp
|
|
Logging.cpp
|
|
User.cpp
|
|
)
|
|
|
|
add_library(telebotxx SHARED ${SOURCE_FILES})
|
|
target_link_libraries(telebotxx ${CPR_LIBRARIES})
|
|
|
|
message(STATUS "Configuring telebotxx - done")
|