forked from mirror/vita-toolchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
607 B
CMake
18 lines
607 B
CMake
find_package(PkgConfig)
|
|
pkg_check_modules(PC_libyaml libyaml>=0.1.6)
|
|
|
|
find_path(libyaml_INCLUDE_DIR yaml.h
|
|
HINTS ${PC_libyaml_INCLUDEDIR} ${PC_libyaml_INCLUDE_DIRS})
|
|
|
|
find_library(libyaml_LIBRARY NAMES yaml libyaml
|
|
HINTS ${PC_libyaml_LIBDIR} ${PC_libyaml_LIBRARY_DIRS} )
|
|
|
|
set(libyaml_LIBRARIES ${libyaml_LIBRARY})
|
|
set(libyaml_INCLUDE_DIRS ${libyaml_INCLUDE_DIR})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(libyaml DEFAULT_MSG
|
|
libyaml_LIBRARY libyaml_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(libyaml_INCLUDE_DIR libyaml_LIBRARY )
|