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.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0462950..c0f8b15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -3,14 +3,21 @@ project (capital)
3 3
4add_subdirectory(vendor/libtwittercpp) 4add_subdirectory(vendor/libtwittercpp)
5add_subdirectory(vendor/verbly) 5add_subdirectory(vendor/verbly)
6add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
7 6
8find_package(PkgConfig) 7find_package(PkgConfig)
9pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) 8pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)
9pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
10
11include_directories(
12 ${GraphicsMagick_INCLUDE_DIRS}
13 vendor/verbly/lib
14 vendor/libtwittercpp/src
15 ${yaml-cpp_INCLUDE_DIRS}
16 vendor/libtwittercpp/vendor/curlcpp/include)
10 17
11include_directories(${GraphicsMagick_INCLUDE_DIRS} vendor/verbly/lib vendor/libtwittercpp/src vendor/yaml-cpp/include vendor/libtwittercpp/vendor/curlcpp/include)
12link_directories(${GraphicsMagick_LIBRARY_DIRS}) 18link_directories(${GraphicsMagick_LIBRARY_DIRS})
19
13add_executable(capital capital.cpp main.cpp) 20add_executable(capital capital.cpp main.cpp)
14set_property(TARGET capital PROPERTY CXX_STANDARD 11) 21set_property(TARGET capital PROPERTY CXX_STANDARD 11)
15set_property(TARGET capital PROPERTY CXX_STANDARD_REQUIRED ON) 22set_property(TARGET capital PROPERTY CXX_STANDARD_REQUIRED ON)
16target_link_libraries(capital ${GraphicsMagick_LIBRARIES} verbly yaml-cpp twitter++) 23target_link_libraries(capital ${GraphicsMagick_LIBRARIES} verbly ${yaml-cpp_LIBRARIES} twitter++)