diff --git a/.gitmodules b/.gitmodules index 85d2c462..96944e6e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "third_party/gflags"] path = third_party/gflags url = https://github.com/gflags/gflags +[submodule "third_party/yaml-cpp"] + path = third_party/yaml-cpp + url = https://github.com/jbeder/yaml-cpp.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d59d4bd..fe8e0ee2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,5 +22,11 @@ add_subdirectory(third_party/gflags EXCLUDE_FROM_ALL) add_subdirectory(third_party/cctz EXCLUDE_FROM_ALL) add_subdirectory(third_party/abseil-cpp EXCLUDE_FROM_ALL) +option(YAML_CPP_BUILD_TESTS "" OFF) +add_subdirectory(third_party/yaml-cpp EXCLUDE_FROM_ALL) +target_include_directories(yaml-cpp PUBLIC + $ + ) + add_subdirectory(lib) add_subdirectory(tools) diff --git a/third_party/yaml-cpp b/third_party/yaml-cpp new file mode 160000 index 00000000..86ae3a5a --- /dev/null +++ b/third_party/yaml-cpp @@ -0,0 +1 @@ +Subproject commit 86ae3a5aa7e2109d849b2df89176d6432a35265d