blob: d2db910a5049b4db799654f1fdc7bc38541cff27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
find_package(PkgConfig QUIET)
if (PkgConfig_FOUND)
pkg_check_modules(Gconf gconf-2.0 IMPORTED_TARGET)
if (TARGET PkgConfig::Gconf)
mark_as_advanced(Gconf_LIBRARIES Gconf_INCLUDE_DIRS)
if (NOT TARGET Gconf::Gconf)
add_library(Gconf::Gconf INTERFACE IMPORTED)
target_link_libraries(Gconf::Gconf INTERFACE PkgConfig::Gconf)
endif()
else()
set(Gconf_FOUND 0)
endif()
endif()
|