app/depth_demo/CMakeLists.txt :
set(yaml-cpp_DIR /home/data/Downloads/yaml-cpp-release-0.5.3/build)
find_package(yaml-cpp REQUIRED)
MESSAGE(STATUS "yaml_INCLUDE_DIR: ${YAML_CPP_INCLUDE_DIR}")
MESSAGE(STATUS "yaml_libraries: ${YAML_CPP_LIBRARIES}")
and the " cmake .." like this:
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX