blob: 7685af5fcff9720f1dac90ef0bb801af3bb89665 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
cmake_minimum_required (VERSION 3.1)
project (twitter++)
include_directories(vendor/json)
set(LIBOAUTHCPP_BUILD_DEMOS FALSE)
add_subdirectory(vendor/liboauthcpp/build EXCLUDE_FROM_ALL)
include_directories(vendor/liboauthcpp/include)
add_subdirectory(vendor/curlcpp)
include_directories(${CURLCPP_SOURCE_DIR}/include)
add_library(twitter++
src/client.cpp
src/request.cpp
src/timeline.cpp
src/stream.cpp
src/tweet.cpp
src/codes.cpp
src/notification.cpp
src/direct_message.cpp
src/list.cpp
src/user.cpp
src/configuration.cpp
src/util.cpp)
set_property(TARGET twitter++ PROPERTY CXX_STANDARD 14)
set_property(TARGET twitter++ PROPERTY CXX_STANDARD_REQUIRED ON)
target_link_libraries(twitter++ oauthcpp curlcpp curl pthread)
|