about summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-08-05 14:16:02 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-08-05 14:16:02 -0400
commitaba2c7420c1419e4977ccd0118d6411afb2f690b (patch)
treef3cdec3db5f68f66406812b6da18fb6ca7a490f9 /CMakeLists.txt
parent4cf78a6371b4df02242bb055b8e15d9c9223dbb0 (diff)
downloadsnitch-aba2c7420c1419e4977ccd0118d6411afb2f690b.tar.gz
snitch-aba2c7420c1419e4977ccd0118d6411afb2f690b.tar.bz2
snitch-aba2c7420c1419e4977ccd0118d6411afb2f690b.zip
Removed yaml-cpp submodule
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f2fd133..1b1920a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,13 +1,16 @@
1cmake_minimum_required (VERSION 3.1) 1cmake_minimum_required (VERSION 3.1)
2project (snitch) 2project (snitch)
3 3
4set(CMAKE_BUILD_TYPE Debug)
5
6add_subdirectory(vendor/libtwittercpp) 4add_subdirectory(vendor/libtwittercpp)
7add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
8 5
9include_directories(vendor/libtwittercpp/src vendor/libtwittercpp/vendor/json/src vendor/libtwittercpp/vendor/curlcpp/include vendor/yaml-cpp/include) 6find_package(PkgConfig)
7pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
8
9include_directories(
10 vendor/libtwittercpp/src
11 ${yaml-cpp_INCLUDE_DIRS})
12
10add_executable(snitch snitch.cpp) 13add_executable(snitch snitch.cpp)
11set_property(TARGET snitch PROPERTY CXX_STANDARD 11) 14set_property(TARGET snitch PROPERTY CXX_STANDARD 11)
12set_property(TARGET snitch PROPERTY CXX_STANDARD_REQUIRED ON) 15set_property(TARGET snitch PROPERTY CXX_STANDARD_REQUIRED ON)
13target_link_libraries(snitch yaml-cpp twitter++ curlcpp curl pthread) 16target_link_libraries(snitch ${yaml-cpp_LIBRARIES} twitter++)