about summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f290c9..3c43670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -3,13 +3,14 @@ project (twitter++)
3 3
4include_directories(vendor/json/src) 4include_directories(vendor/json/src)
5 5
6set(LIBOAUTHCPP_BUILD_DEMOS FALSE)
6add_subdirectory(vendor/liboauthcpp/build EXCLUDE_FROM_ALL) 7add_subdirectory(vendor/liboauthcpp/build EXCLUDE_FROM_ALL)
7include_directories(vendor/liboauthcpp/include) 8include_directories(vendor/liboauthcpp/include)
8 9
9add_subdirectory(vendor/curlcpp) 10add_subdirectory(vendor/curlcpp)
10include_directories(${CURLCPP_SOURCE_DIR}/include) 11include_directories(${CURLCPP_SOURCE_DIR}/include)
11 12
12add_library(twitter++ src/client.cpp src/auth.cpp src/tweet.cpp src/codes.cpp) 13add_library(twitter++ src/client.cpp src/auth.cpp src/tweet.cpp src/codes.cpp src/notification.cpp src/direct_message.cpp src/list.cpp src/user.cpp)
13set_property(TARGET twitter++ PROPERTY CXX_STANDARD 11) 14set_property(TARGET twitter++ PROPERTY CXX_STANDARD 11)
14set_property(TARGET twitter++ PROPERTY CXX_STANDARD_REQUIRED ON) 15set_property(TARGET twitter++ PROPERTY CXX_STANDARD_REQUIRED ON)
15target_link_libraries(twitter++ oauthcpp curlcpp) 16target_link_libraries(twitter++ oauthcpp curlcpp)