12 lines
367 B
CMake
Raw Normal View History

2017-07-20 19:35:53 +02:00
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)
2017-08-11 09:33:23 +02:00
if ("BarModule" IN_LIST Foo_FIND_COMPONENTS)
2017-07-20 19:35:53 +02:00
find_package(Bar)
2017-08-11 09:33:23 +02:00
elseif ("BarConfig" IN_LIST Foo_FIND_COMPONENTS)
find_package(Bar CONFIG)
2017-07-20 19:35:53 +02:00
endif ()