diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
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 | ||
6 | find_package(PkgConfig) | 6 | find_package(PkgConfig) |
7 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) | 7 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) |
8 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) | ||
8 | 9 | ||
9 | add_subdirectory(vendor/verbly) | 10 | add_subdirectory(vendor/verbly) |
10 | add_subdirectory(vendor/libtwittercpp) | 11 | add_subdirectory(vendor/libtwittercpp) |
11 | add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) | ||
12 | 12 | ||
13 | include_directories(vendor/verbly/lib vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include) | 13 | include_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 | |||
14 | add_executable(advice main.cpp advice.cpp sentence.cpp) | 20 | add_executable(advice main.cpp advice.cpp sentence.cpp) |
15 | set_property(TARGET advice PROPERTY CXX_STANDARD 11) | 21 | set_property(TARGET advice PROPERTY CXX_STANDARD 11) |
16 | set_property(TARGET advice PROPERTY CXX_STANDARD_REQUIRED ON) | 22 | set_property(TARGET advice PROPERTY CXX_STANDARD_REQUIRED ON) |
17 | target_link_libraries(advice verbly twitter++ ${GraphicsMagick_LIBRARIES} yaml-cpp) | 23 | target_link_libraries(advice verbly twitter++ ${GraphicsMagick_LIBRARIES} ${yaml-cpp_LIBRARIES}) |