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.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})