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 f563ae5..096d08d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,11 +1,17 @@ | |||
1 | cmake_minimum_required (VERSION 3.1) | 1 | cmake_minimum_required (VERSION 3.1) |
2 | project (rawr-ebooks) | 2 | project (rawr-ebooks) |
3 | 3 | ||
4 | find_package(PkgConfig) | ||
5 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) | ||
6 | |||
4 | add_subdirectory(vendor/rawr-ebooks EXCLUDE_FROM_ALL) | 7 | add_subdirectory(vendor/rawr-ebooks EXCLUDE_FROM_ALL) |
5 | 8 | ||
6 | include_directories(vendor/rawr-ebooks) | 9 | include_directories( |
10 | vendor/rawr-ebooks | ||
11 | vendor/rawr-ebooks/vendor/libtwittercpp/src | ||
12 | ${yaml-cpp_INCLUDE_DIRS}) | ||
7 | 13 | ||
8 | add_executable(garnet dialogue.cpp histogram.cpp) | 14 | add_executable(garnet dialogue.cpp) |
9 | set_property(TARGET garnet PROPERTY CXX_STANDARD 17) | 15 | set_property(TARGET garnet PROPERTY CXX_STANDARD 17) |
10 | set_property(TARGET garnet PROPERTY CXX_STANDARD_REQUIRED ON) | 16 | set_property(TARGET garnet PROPERTY CXX_STANDARD_REQUIRED ON) |
11 | target_link_libraries(garnet rawr) | 17 | target_link_libraries(garnet rawr twitter++ ${yaml-cpp_LIBRARIES}) |