945d9ed58c78277caa11c1cc97299eb58f96e78c
[platform/upstream/cmake.git] / Tests / RunCMake / project / RunCMakeTest.cmake
1 include(RunCMake)
2
3 # Use an initial cache file to define the project() variables
4 # to avoid long command lines. Also see the CMakeOnly test case
5 # which tests some of the individual variables one at a time.
6 # Here, we are focused on testing that the variables are all injected
7 # at the expected points in the expected order.
8 run_cmake_with_options(CodeInjection
9   -C "${CMAKE_CURRENT_LIST_DIR}/CodeInjection/initial_cache.cmake"
10 )
11
12 if(CMake_TEST_RESOURCES)
13   run_cmake(ExplicitRC)
14 endif()
15 run_cmake(LanguagesImplicit)
16 run_cmake(LanguagesEmpty)
17 run_cmake(LanguagesNONE)
18 run_cmake(LanguagesTwice)
19 run_cmake(LanguagesUnordered)
20 if(RunCMake_GENERATOR MATCHES "Make|Ninja")
21   run_cmake(LanguagesUsedButNotEnabled)
22 endif()
23 run_cmake(ProjectDescription)
24 run_cmake(ProjectDescription2)
25 run_cmake(ProjectDescriptionNoArg)
26 run_cmake(ProjectDescriptionNoArg2)
27 run_cmake(ProjectHomepage)
28 run_cmake(ProjectHomepage2)
29 run_cmake(ProjectHomepageNoArg)
30 run_cmake(ProjectIsTopLevel)
31 run_cmake(ProjectIsTopLevelMultiple)
32 run_cmake(ProjectIsTopLevelSubdirectory)
33 run_cmake(ProjectTwice)
34 run_cmake(VersionAndLanguagesEmpty)
35 run_cmake(VersionEmpty)
36 run_cmake(VersionInvalid)
37 run_cmake(VersionMissingLanguages)
38 run_cmake(VersionMissingValueOkay)
39 run_cmake(VersionTwice)
40 run_cmake(VersionMax)
41
42 run_cmake(CMP0048-OLD)
43 run_cmake(CMP0048-OLD-VERSION)
44 run_cmake(CMP0048-WARN)
45 run_cmake(CMP0048-NEW)
46
47 run_cmake(CMP0096-WARN)
48 run_cmake(CMP0096-OLD)
49 run_cmake(CMP0096-NEW)