summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FPHSA/FindUseComponents.cmake
blob: 4168f1d480408c8bbc3949ad6720a5922542a1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# pseudo find_module

if (UseComponents_REQUIRE_VARS)
  set(FOOBAR TRUE)
  set(REQUIRED_VARS REQUIRED_VARS  FOOBAR)
endif()

set (UseComponents_Comp1_FOUND TRUE)
set (UseComponents_Comp2_FOUND TRUE)
set (UseComponents_Comp3_FOUND FALSE)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(UseComponents ${REQUIRED_VARS}
                                                VERSION_VAR Pseudo_VERSION
                                                HANDLE_COMPONENTS)