FindFoo.cmake 367 B

1234567891011
  1. find_file(FOO_TEST_FILE_FOO foo.h)
  2. find_file(FOO_TEST_FILE_ZOT zot.h PATH_SUFFIXES zot)
  3. find_path(FOO_TEST_PATH_FOO foo.h)
  4. find_path(FOO_TEST_PATH_ZOT zot.h PATH_SUFFIXES zot)
  5. find_program(FOO_TEST_PROG_FOO foo.exe)
  6. if ("BarModule" IN_LIST Foo_FIND_COMPONENTS)
  7. find_package(Bar)
  8. elseif ("BarConfig" IN_LIST Foo_FIND_COMPONENTS)
  9. find_package(Bar CONFIG)
  10. endif ()