2011-05-15 21:19:41 +02:00
|
|
|
# Try to find yaml-cpp
|
|
|
|
# YAMLCPP_FOUND - system has yaml-cpp
|
|
|
|
# YAMLCPP_INCLUDE_DIR - the yaml-cpp include directory
|
|
|
|
# YAMLCPP_LIBRARY - the yaml-cpp library
|
2010-11-21 22:48:58 +01:00
|
|
|
|
2011-05-15 21:19:41 +02:00
|
|
|
FIND_PATH(YAMLCPP_INCLUDE_DIR NAMES yaml.h PATH_SUFFIXES yaml-cpp)
|
|
|
|
FIND_LIBRARY(YAMLCPP_LIBRARY NAMES libyaml-cpp.a yaml-cpp)
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(YamlCpp DEFAULT_MSG YAMLCPP_LIBRARY YAMLCPP_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(YAMLCPP_LIBRARY YAMLCPP_INCLUDE_DIR)
|