summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/DependencyProviders/RunCMakeTest.cmake
blob: 42893d2ed300bf76b325061d252b19a5ab09343c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
include(RunCMake)

run_cmake_with_options(BeforeProject
  -D "include_before_project=set_provider.cmake"
  -D "provider_command=null_provider"
  -D "provider_methods=find_package"
)
run_cmake_with_options(AfterProject
  -D "include_after_project=set_provider.cmake"
  -D "provider_command=null_provider"
  -D "provider_methods=find_package"
)
run_cmake_with_options(ProjectIncludeBefore
  -D "CMAKE_PROJECT_INCLUDE_BEFORE=set_provider.cmake"
  -D "provider_command=null_provider"
  -D "provider_methods=find_package"
)
run_cmake_with_options(ProjectIncludeAfter
  -D "CMAKE_PROJECT_INCLUDE=set_provider.cmake"
  -D "provider_command=null_provider"
  -D "provider_methods=find_package"
)
run_cmake_with_options(ToolchainFile
  -D "CMAKE_TOOLCHAIN_FILE=set_provider.cmake"
  -D "provider_command=null_provider"
  -D "provider_methods=find_package"
)
run_cmake_with_options(NoCommand
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_methods=find_package"
)
run_cmake_with_options(NoMethods
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=null_provider"
)
run_cmake_with_options(NoCommandOrMethods
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
)
run_cmake_with_options(PassThroughProvider
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=null_provider"
  -D "provider_methods=FIND_PACKAGE\\;FETCHCONTENT_MAKEAVAILABLE_SERIAL"
)
run_cmake_with_options(FindPackage
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=find_package_provider"
  -D "provider_methods=FIND_PACKAGE"
)
run_cmake_with_options(RedirectFindPackage
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=redirect_find_package_provider"
  -D "provider_methods=FIND_PACKAGE"
)
run_cmake_with_options(FetchContentSerial
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=FetchContentSerial_provider"
  -D "provider_methods=FETCHCONTENT_MAKEAVAILABLE_SERIAL"
)
run_cmake_with_options(RedirectFetchContentSerial
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=redirect_FetchContentSerial_provider"
  -D "provider_methods=FETCHCONTENT_MAKEAVAILABLE_SERIAL"
)
run_cmake_with_options(Bypass
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=forward_find_package"
  -D "provider_methods=FIND_PACKAGE"
)
run_cmake_with_options(Recurse
  -D "CMAKE_PROJECT_TOP_LEVEL_INCLUDES=set_provider.cmake"
  -D "provider_command=recurse_FetchContent"
  -D "provider_methods=FETCHCONTENT_MAKEAVAILABLE_SERIAL"
)