Last active
December 12, 2017 08:23
-
-
Save drewxa/5822a73a5d599494fbf964543e704716 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8.4) | |
project(example-bot) | |
set(TgBot_INCLUDE_DIR "/usr/local/include/") | |
set(TgBot_LIB "/usr/local/lib/libTgBot.a") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") | |
set(Boost_USE_MULTITHREADED ON) | |
# set(Boost_USE_STATIC_LIBS ON) | |
find_package(Threads REQUIRED) | |
find_package(OpenSSL REQUIRED) | |
find_package(Boost COMPONENTS system iostreams date_time locale REQUIRED) | |
include_directories(${TgBot_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ./src) | |
add_executable(example-bot src/main.cpp src/api.cpp src/engine.cpp src/keyboard.cpp src/utils.cpp) | |
target_link_libraries(example-bot ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} ${TgBot_LIB} ) | |
target_link_libraries(example-bot pthread ssl crypto) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment