summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig/FindPkgConfig_GET_VARIABLE.cmake
blob: c85efaa57d9397029340455f7c340e025184eca7 (plain)
1
2
3
4
5
6
7
8
9
find_package(PkgConfig REQUIRED)
pkg_check_modules(GOBJECT_INTROSPECTION QUIET gobject-introspection-1.0)

if (GOBJECT_INTROSPECTION_FOUND)
  pkg_get_variable(g_ir_scanner gobject-introspection-1.0 g_ir_scanner)
  message(STATUS "g_ir_scanner: ${g_ir_scanner}")
else ()
  message(STATUS "g_ir_scanner: skipping test; gobject-introspection-1.0 not found /g-ir-scanner")
endif ()