From cb7166d7bccc4b16292c9e1359b9bc091afad716 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 4 Aug 2018 19:25:22 -0400 Subject: Removed yaml-cpp submodule --- CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 793ae7e..0a0a209 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,10 +3,16 @@ project (blessed) add_subdirectory(vendor/libtwittercpp) add_subdirectory(vendor/verbly) -add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) -include_directories(vendor/libtwittercpp/src vendor/verbly/lib vendor/yaml-cpp/include) +find_package(PkgConfig) +pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) + +include_directories( + vendor/libtwittercpp/src + vendor/verbly/lib + ${yaml-cpp_INCLUDE_DIRS}) + add_executable(blessed blessed.cpp) set_property(TARGET blessed PROPERTY CXX_STANDARD 11) set_property(TARGET blessed PROPERTY CXX_STANDARD_REQUIRED ON) -target_link_libraries(blessed twitter++ yaml-cpp verbly) +target_link_libraries(blessed twitter++ ${yaml-cpp_LIBRARIES} verbly) -- cgit 1.4.1