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.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7ae7a9..adb9ba1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,18 +1,15 @@
1cmake_minimum_required (VERSION 3.1) 1cmake_minimum_required (VERSION 3.1)
2project (difference) 2project (difference)
3 3
4set(CMAKE_BUILD_TYPE Debug)
5
6add_subdirectory(vendor/libtwittercpp) 4add_subdirectory(vendor/libtwittercpp)
7add_subdirectory(vendor/verbly) 5add_subdirectory(vendor/verbly)
8add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) 6add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
9 7
10find_package(PkgConfig) 8find_package(PkgConfig)
11pkg_check_modules(sqlite3 sqlite3 REQUIRED)
12pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) 9pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)
13 10
14include_directories(vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include ${sqlite3_INCLUDE_DIR} vendor/verbly/lib ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include) 11include_directories(vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include vendor/verbly/lib ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include)
15add_executable(difference difference.cpp) 12add_executable(difference difference.cpp main.cpp)
16set_property(TARGET difference PROPERTY CXX_STANDARD 11) 13set_property(TARGET difference PROPERTY CXX_STANDARD 11)
17set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON) 14set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON)
18target_link_libraries(difference verbly ${sqlite3_LIBRARIES} yaml-cpp twitter++ ${GraphicsMagick_LIBRARIES}) 15target_link_libraries(difference verbly yaml-cpp twitter++ ${GraphicsMagick_LIBRARIES})