diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
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 @@ | |||
1 | cmake_minimum_required (VERSION 3.1) | 1 | cmake_minimum_required (VERSION 3.1) |
2 | project (difference) | 2 | project (difference) |
3 | 3 | ||
4 | set(CMAKE_BUILD_TYPE Debug) | ||
5 | |||
6 | add_subdirectory(vendor/libtwittercpp) | 4 | add_subdirectory(vendor/libtwittercpp) |
7 | add_subdirectory(vendor/verbly) | 5 | add_subdirectory(vendor/verbly) |
8 | add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) | 6 | add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) |
9 | 7 | ||
10 | find_package(PkgConfig) | 8 | find_package(PkgConfig) |
11 | pkg_check_modules(sqlite3 sqlite3 REQUIRED) | ||
12 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) | 9 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) |
13 | 10 | ||
14 | include_directories(vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include ${sqlite3_INCLUDE_DIR} vendor/verbly/lib ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include) | 11 | include_directories(vendor/libtwittercpp/src vendor/libtwittercpp/vendor/curlcpp/include vendor/verbly/lib ${GraphicsMagick_INCLUDE_DIRS} vendor/yaml-cpp/include) |
15 | add_executable(difference difference.cpp) | 12 | add_executable(difference difference.cpp main.cpp) |
16 | set_property(TARGET difference PROPERTY CXX_STANDARD 11) | 13 | set_property(TARGET difference PROPERTY CXX_STANDARD 11) |
17 | set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON) | 14 | set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON) |
18 | target_link_libraries(difference verbly ${sqlite3_LIBRARIES} yaml-cpp twitter++ ${GraphicsMagick_LIBRARIES}) | 15 | target_link_libraries(difference verbly yaml-cpp twitter++ ${GraphicsMagick_LIBRARIES}) |