summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig/RunCMakeTest.cmake
blob: 24089e0a5692857e6bedd2914f143a1a641b2797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include(RunCMake)

run_cmake(FindPkgConfig_NO_PKGCONFIG_PATH)
run_cmake(FindPkgConfig_PKGCONFIG_PATH)
run_cmake(FindPkgConfig_PKGCONFIG_PATH_NO_CMAKE_PATH)
run_cmake(FindPkgConfig_PKGCONFIG_PATH_NO_CMAKE_ENVIRONMENT_PATH)

if(APPLE)
  run_cmake(FindPkgConfig_CMAKE_FRAMEWORK_PATH)
  run_cmake(FindPkgConfig_CMAKE_APPBUNDLE_PATH)
endif()

# We need a real pkg-config to run the test for get_variable.
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
  run_cmake(FindPkgConfig_GET_VARIABLE)
  run_cmake(FindPkgConfig_cache_variables)
endif ()