10 lines
470 B
CMake
10 lines
470 B
CMake
# 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
|
|
|
|
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) |