summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-12-19 12:35:51 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-12-19 12:35:51 -0500
commitadc3efe6a834ae04194ff3637aaadb71880b5c21 (patch)
treed3e290e3d3b6b2487206c4c35344a97620b3c14b /CMakeLists.txt
parentacba5923a5a4df59239a9b33d2b280709fafa9ae (diff)
downloadadvice-adc3efe6a834ae04194ff3637aaadb71880b5c21.tar.gz
advice-adc3efe6a834ae04194ff3637aaadb71880b5c21.tar.bz2
advice-adc3efe6a834ae04194ff3637aaadb71880b5c21.zip
Removed yaml-cpp submodule
Project now links against a local installation of yaml-cpp.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fc053d..837eb8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -5,13 +5,19 @@ set(CMAKE_BUILD_TYPE Debug)
5 5
6find_package(PkgConfig) 6find_package(PkgConfig)
7pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) 7pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)
8pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
8 9
9add_subdirectory(vendor/verbly) 10add_subdirectory(vendor/verbly)
10add_subdirectory(vendor/libtwittercpp) 11add_subdirectory(vendor/libtwittercpp)
11add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
12 12
13include_directories(vendor/verbly/lib vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include) 13include_directories(
14 vendor/verbly/lib
15 vendor/libtwittercpp/src
16 vendor/libtwittercpp/vendor/curlcpp/include
17 ${GraphicsMagick_INCLUDE_DIRS}
18 ${yaml-cpp_INCLUDE_DIRS})
19
14add_executable(advice main.cpp advice.cpp sentence.cpp) 20add_executable(advice main.cpp advice.cpp sentence.cpp)
15set_property(TARGET advice PROPERTY CXX_STANDARD 11) 21set_property(TARGET advice PROPERTY CXX_STANDARD 11)
16set_property(TARGET advice PROPERTY CXX_STANDARD_REQUIRED ON) 22set_property(TARGET advice PROPERTY CXX_STANDARD_REQUIRED ON)
17target_link_libraries(advice verbly twitter++ ${GraphicsMagick_LIBRARIES} yaml-cpp) 23target_link_libraries(advice verbly twitter++ ${GraphicsMagick_LIBRARIES} ${yaml-cpp_LIBRARIES})