about 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 adb9ba1..e444b73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -3,13 +3,19 @@ project (difference)
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 vendor/libtwittercpp/src
13 vendor/libtwittercpp/vendor/curlcpp/include
14 vendor/verbly/lib
15 ${GraphicsMagick_INCLUDE_DIRS}
16 ${yaml-cpp_INCLUDE_DIRS})
10 17
11include_directories(vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include vendor/verbly/lib ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include)
12add_executable(difference difference.cpp main.cpp) 18add_executable(difference difference.cpp main.cpp)
13set_property(TARGET difference PROPERTY CXX_STANDARD 11) 19set_property(TARGET difference PROPERTY CXX_STANDARD 11)
14set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON) 20set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON)
15target_link_libraries(difference verbly yaml-cpp twitter++ ${GraphicsMagick_LIBRARIES}) 21target_link_libraries(difference verbly ${yaml-cpp_LIBRARIES} twitter++ ${GraphicsMagick_LIBRARIES})