summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/PackageRoot/FindFoo.cmake
blob: b929c2ad8b236a9bb54fdf48cc1caf4b1ca36960 (plain)
1
2
3
4
5
6
7
8
9
10
11
find_file(FOO_TEST_FILE_FOO foo.h)
find_file(FOO_TEST_FILE_ZOT zot.h PATH_SUFFIXES zot)
find_path(FOO_TEST_PATH_FOO foo.h)
find_path(FOO_TEST_PATH_ZOT zot.h PATH_SUFFIXES zot)
find_program(FOO_TEST_PROG_FOO foo.exe)

if ("BarModule" IN_LIST Foo_FIND_COMPONENTS)
  find_package(Bar)
elseif ("BarConfig" IN_LIST Foo_FIND_COMPONENTS)
  find_package(Bar CONFIG)
endif ()