File: Findyaml-cpp.cmake

package info (click to toggle)
ompl 1.6.0%2Bds1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 53,496 kB
  • sloc: cpp: 85,252; python: 4,916; sh: 215; xml: 26; javascript: 15; makefile: 11
file content (12 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# Find libyaml-cpp, a library for parsing YAML files

include(FindPackageHandleStandardArgs)

find_package(PkgConfig)
if(PKGCONFIG_FOUND)
    pkg_check_modules(YAMLCPP yaml-cpp)
    if(YAMLCPP_LIBRARIES AND NOT YAMLCPP_INCLUDE_DIRS)
        set(YAMLCPP_INCLUDE_DIRS "/usr/include")
    endif()
endif()
find_package_handle_standard_args(yaml-cpp DEFAULT_MSG YAMLCPP_LIBRARIES YAMLCPP_INCLUDE_DIRS)