diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-23 11:05:17 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-23 11:05:17 -0500 |
commit | 9acf1f0ee0859125de4136e36f40f550a45e26ff (patch) | |
tree | da83e0fa4db9ae805f9cd8a678355c406cd8e9c6 /CMakeLists.txt | |
parent | 58cdbee6f08bd5d4f371d8eb9739d74332213703 (diff) | |
download | insult-9acf1f0ee0859125de4136e36f40f550a45e26ff.tar.gz insult-9acf1f0ee0859125de4136e36f40f550a45e26ff.tar.bz2 insult-9acf1f0ee0859125de4136e36f40f550a45e26ff.zip |
Removed yaml-cpp submodule
Project now links against a local installation of yaml-cpp.
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 b9a143f..1a7a4c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -2,11 +2,17 @@ cmake_minimum_required (VERSION 3.1) | |||
2 | project (insult) | 2 | project (insult) |
3 | 3 | ||
4 | add_subdirectory(vendor/verbly) | 4 | add_subdirectory(vendor/verbly) |
5 | add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) | ||
6 | add_subdirectory(vendor/libtwittercpp) | 5 | add_subdirectory(vendor/libtwittercpp) |
7 | 6 | ||
8 | include_directories(vendor/verbly/lib vendor/yaml-cpp/include vendor/libtwittercpp/src) | 7 | find_package(PkgConfig) |
8 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) | ||
9 | |||
10 | include_directories( | ||
11 | vendor/verbly/lib | ||
12 | ${yaml-cpp_INCLUDE_DIRS} | ||
13 | vendor/libtwittercpp/src) | ||
14 | |||
9 | add_executable(insult insult.cpp patterner.cpp) | 15 | add_executable(insult insult.cpp patterner.cpp) |
10 | set_property(TARGET insult PROPERTY CXX_STANDARD 11) | 16 | set_property(TARGET insult PROPERTY CXX_STANDARD 11) |
11 | set_property(TARGET insult PROPERTY CXX_STANDARD_REQUIRED ON) | 17 | set_property(TARGET insult PROPERTY CXX_STANDARD_REQUIRED ON) |
12 | target_link_libraries(insult verbly twitter++ yaml-cpp) | 18 | target_link_libraries(insult verbly twitter++ ${yaml-cpp_LIBRARIES}) |