8053 beefd0184a 2022-08-08 ct_chen 2 лет назад
..
Android beefd0184a 2022-08-08 ct_chen 2 лет назад
AndroidMK beefd0184a 2022-08-08 ct_chen 2 лет назад
AndroidTestUtilities beefd0184a 2022-08-08 ct_chen 2 лет назад
AutoExportDll beefd0184a 2022-08-08 ct_chen 2 лет назад
BuildDepends beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0004 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0019 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0022 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0026 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0027 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0028 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0037 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0038 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0039 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0040 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0041 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0042 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0043 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0045 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0046 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0049 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0050 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0051 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0053 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0054 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0055 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0057 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0059 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0060 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0064 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0065 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0068 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMP0069 beefd0184a 2022-08-08 ct_chen 2 лет назад
CMakeFiles beefd0184a 2022-08-08 ct_chen 2 лет назад
CPack beefd0184a 2022-08-08 ct_chen 2 лет назад
CPackConfig beefd0184a 2022-08-08 ct_chen 2 лет назад
CPackInstallProperties beefd0184a 2022-08-08 ct_chen 2 лет назад
CPackSymlinks beefd0184a 2022-08-08 ct_chen 2 лет назад
CSharpCustomCommand beefd0184a 2022-08-08 ct_chen 2 лет назад
CTest beefd0184a 2022-08-08 ct_chen 2 лет назад
CTestCommandLine beefd0184a 2022-08-08 ct_chen 2 лет назад
CTestTimeoutAfterMatch beefd0184a 2022-08-08 ct_chen 2 лет назад
CacheNewline beefd0184a 2022-08-08 ct_chen 2 лет назад
CheckIPOSupported beefd0184a 2022-08-08 ct_chen 2 лет назад
CheckModules beefd0184a 2022-08-08 ct_chen 2 лет назад
ClangTidy beefd0184a 2022-08-08 ct_chen 2 лет назад
CommandLine beefd0184a 2022-08-08 ct_chen 2 лет назад
CommandLineTar beefd0184a 2022-08-08 ct_chen 2 лет назад
CompatibleInterface beefd0184a 2022-08-08 ct_chen 2 лет назад
CompileDefinitions beefd0184a 2022-08-08 ct_chen 2 лет назад
CompileFeatures beefd0184a 2022-08-08 ct_chen 2 лет назад
CompilerChange beefd0184a 2022-08-08 ct_chen 2 лет назад
CompilerLauncher beefd0184a 2022-08-08 ct_chen 2 лет назад
CompilerNotFound beefd0184a 2022-08-08 ct_chen 2 лет назад
Configure beefd0184a 2022-08-08 ct_chen 2 лет назад
Cppcheck beefd0184a 2022-08-08 ct_chen 2 лет назад
Cpplint beefd0184a 2022-08-08 ct_chen 2 лет назад
CrosscompilingEmulator beefd0184a 2022-08-08 ct_chen 2 лет назад
DisallowedCommands beefd0184a 2022-08-08 ct_chen 2 лет назад
ExportWithoutLanguage beefd0184a 2022-08-08 ct_chen 2 лет назад
ExternalData beefd0184a 2022-08-08 ct_chen 2 лет назад
ExternalProject beefd0184a 2022-08-08 ct_chen 2 лет назад
FPHSA beefd0184a 2022-08-08 ct_chen 2 лет назад
FeatureSummary beefd0184a 2022-08-08 ct_chen 2 лет назад
FetchContent beefd0184a 2022-08-08 ct_chen 2 лет назад
File_Generate beefd0184a 2022-08-08 ct_chen 2 лет назад
FindBoost beefd0184a 2022-08-08 ct_chen 2 лет назад
FindGTK2 beefd0184a 2022-08-08 ct_chen 2 лет назад
FindMatlab beefd0184a 2022-08-08 ct_chen 2 лет назад
FindOpenGL beefd0184a 2022-08-08 ct_chen 2 лет назад
FindPkgConfig beefd0184a 2022-08-08 ct_chen 2 лет назад
Framework beefd0184a 2022-08-08 ct_chen 2 лет назад
GNUInstallDirs beefd0184a 2022-08-08 ct_chen 2 лет назад
GenerateExportHeader beefd0184a 2022-08-08 ct_chen 2 лет назад
GeneratorExpression beefd0184a 2022-08-08 ct_chen 2 лет назад
GeneratorInstance beefd0184a 2022-08-08 ct_chen 2 лет назад
GeneratorPlatform beefd0184a 2022-08-08 ct_chen 2 лет назад
GeneratorToolset beefd0184a 2022-08-08 ct_chen 2 лет назад
GetPrerequisites beefd0184a 2022-08-08 ct_chen 2 лет назад
GoogleTest beefd0184a 2022-08-08 ct_chen 2 лет назад
IfacePaths beefd0184a 2022-08-08 ct_chen 2 лет назад
IncludeWhatYouUse beefd0184a 2022-08-08 ct_chen 2 лет назад
IncompatibleQt beefd0184a 2022-08-08 ct_chen 2 лет назад
Languages beefd0184a 2022-08-08 ct_chen 2 лет назад
LinkStatic beefd0184a 2022-08-08 ct_chen 2 лет назад
LinkWhatYouUse beefd0184a 2022-08-08 ct_chen 2 лет назад
Make beefd0184a 2022-08-08 ct_chen 2 лет назад
MultiLint beefd0184a 2022-08-08 ct_chen 2 лет назад
Ninja beefd0184a 2022-08-08 ct_chen 2 лет назад
ObjectLibrary beefd0184a 2022-08-08 ct_chen 2 лет назад
ObsoleteQtMacros beefd0184a 2022-08-08 ct_chen 2 лет назад
PolicyScope beefd0184a 2022-08-08 ct_chen 2 лет назад
PositionIndependentCode beefd0184a 2022-08-08 ct_chen 2 лет назад
RuntimePath beefd0184a 2022-08-08 ct_chen 2 лет назад
SourceProperties beefd0184a 2022-08-08 ct_chen 2 лет назад
Swift beefd0184a 2022-08-08 ct_chen 2 лет назад
Syntax beefd0184a 2022-08-08 ct_chen 2 лет назад
TargetObjects beefd0184a 2022-08-08 ct_chen 2 лет назад
TargetPolicies beefd0184a 2022-08-08 ct_chen 2 лет назад
TargetPropertyGeneratorExpressions beefd0184a 2022-08-08 ct_chen 2 лет назад
TargetSources beefd0184a 2022-08-08 ct_chen 2 лет назад
ToolchainFile beefd0184a 2022-08-08 ct_chen 2 лет назад
VS10Project beefd0184a 2022-08-08 ct_chen 2 лет назад
VSSolution beefd0184a 2022-08-08 ct_chen 2 лет назад
VisibilityPreset beefd0184a 2022-08-08 ct_chen 2 лет назад
WriteCompilerDetectionHeader beefd0184a 2022-08-08 ct_chen 2 лет назад
XcodeProject beefd0184a 2022-08-08 ct_chen 2 лет назад
add_custom_command beefd0184a 2022-08-08 ct_chen 2 лет назад
add_custom_target beefd0184a 2022-08-08 ct_chen 2 лет назад
add_dependencies beefd0184a 2022-08-08 ct_chen 2 лет назад
add_executable beefd0184a 2022-08-08 ct_chen 2 лет назад
add_library beefd0184a 2022-08-08 ct_chen 2 лет назад
add_subdirectory beefd0184a 2022-08-08 ct_chen 2 лет назад
alias_targets beefd0184a 2022-08-08 ct_chen 2 лет назад
build_command beefd0184a 2022-08-08 ct_chen 2 лет назад
cmake_minimum_required beefd0184a 2022-08-08 ct_chen 2 лет назад
cmake_parse_arguments beefd0184a 2022-08-08 ct_chen 2 лет назад
configure_file beefd0184a 2022-08-08 ct_chen 2 лет назад
continue beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_build beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_cmake_error beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_configure beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_coverage beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_disabled_test beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_fixtures beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_labels_for_subprojects beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_memcheck beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_skipped_test beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_start beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_submit beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_test beefd0184a 2022-08-08 ct_chen 2 лет назад
ctest_upload beefd0184a 2022-08-08 ct_chen 2 лет назад
execute_process beefd0184a 2022-08-08 ct_chen 2 лет назад
export beefd0184a 2022-08-08 ct_chen 2 лет назад
file beefd0184a 2022-08-08 ct_chen 2 лет назад
find_dependency beefd0184a 2022-08-08 ct_chen 2 лет назад
find_file beefd0184a 2022-08-08 ct_chen 2 лет назад
find_library beefd0184a 2022-08-08 ct_chen 2 лет назад
find_package beefd0184a 2022-08-08 ct_chen 2 лет назад
find_path beefd0184a 2022-08-08 ct_chen 2 лет назад
find_program beefd0184a 2022-08-08 ct_chen 2 лет назад
foreach beefd0184a 2022-08-08 ct_chen 2 лет назад
get_filename_component beefd0184a 2022-08-08 ct_chen 2 лет назад
get_property beefd0184a 2022-08-08 ct_chen 2 лет назад
if beefd0184a 2022-08-08 ct_chen 2 лет назад
include beefd0184a 2022-08-08 ct_chen 2 лет назад
include_directories beefd0184a 2022-08-08 ct_chen 2 лет назад
include_external_msproject beefd0184a 2022-08-08 ct_chen 2 лет назад
include_guard beefd0184a 2022-08-08 ct_chen 2 лет назад
install beefd0184a 2022-08-08 ct_chen 2 лет назад
interface_library beefd0184a 2022-08-08 ct_chen 2 лет назад
list beefd0184a 2022-08-08 ct_chen 2 лет назад
message beefd0184a 2022-08-08 ct_chen 2 лет назад
no_install_prefix beefd0184a 2022-08-08 ct_chen 2 лет назад
project beefd0184a 2022-08-08 ct_chen 2 лет назад
return beefd0184a 2022-08-08 ct_chen 2 лет назад
separate_arguments beefd0184a 2022-08-08 ct_chen 2 лет назад
set beefd0184a 2022-08-08 ct_chen 2 лет назад
set_property beefd0184a 2022-08-08 ct_chen 2 лет назад
string beefd0184a 2022-08-08 ct_chen 2 лет назад
target_compile_features beefd0184a 2022-08-08 ct_chen 2 лет назад
target_link_libraries beefd0184a 2022-08-08 ct_chen 2 лет назад
test_include_dirs beefd0184a 2022-08-08 ct_chen 2 лет назад
try_compile beefd0184a 2022-08-08 ct_chen 2 лет назад
try_run beefd0184a 2022-08-08 ct_chen 2 лет назад
variable_watch beefd0184a 2022-08-08 ct_chen 2 лет назад
while beefd0184a 2022-08-08 ct_chen 2 лет назад
CMakeLists.txt beefd0184a 2022-08-08 ct_chen 2 лет назад
CTestTestfile.cmake beefd0184a 2022-08-08 ct_chen 2 лет назад
Makefile beefd0184a 2022-08-08 ct_chen 2 лет назад
README.rst beefd0184a 2022-08-08 ct_chen 2 лет назад
RunCMake.cmake beefd0184a 2022-08-08 ct_chen 2 лет назад
RunCTest.cmake beefd0184a 2022-08-08 ct_chen 2 лет назад
cmake_install.cmake beefd0184a 2022-08-08 ct_chen 2 лет назад
exit_code beefd0184a 2022-08-08 ct_chen 2 лет назад
exit_code.c beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_cppcheck beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_cppcheck.c beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_cpplint beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_cpplint.c beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_emulator beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_emulator.c beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_emulator_custom_command beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_emulator_custom_command.c beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_iwyu beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_iwyu.c beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_tidy beefd0184a 2022-08-08 ct_chen 2 лет назад
pseudo_tidy.c beefd0184a 2022-08-08 ct_chen 2 лет назад

README.rst

This directory contains tests that run CMake to configure a project
but do not actually build anything. To add a test:

1. Add a subdirectory named for the test, say ``/``.

2. In ``./CMakeLists.txt`` call ``add_RunCMake_test`` and pass the
test directory name ````.

3. Create script ``/RunCMakeTest.cmake`` in the directory containing::

include(RunCMake)
run_cmake(SubTest1)
...
run_cmake(SubTestN)

where ``SubTest1`` through ``SubTestN`` are sub-test names each
corresponding to an independent CMake run and project configuration.

One may also add calls of the form::

run_cmake_command(SubTestI ${CMAKE_COMMAND} ...)

to fully customize the test case command-line.

Alternatively, if the test is to cover running ``ctest -S`` then use::

include(RunCTest)
run_ctest(SubTest1)
...
run_ctest(SubTestN)

and create ``test.cmake.in``, ``CTestConfig.cmake.in``, and
``CMakeLists.txt.in`` files to be configured for each case.

4. Create file ``/CMakeLists.txt`` in the directory containing::

cmake_minimum_required(...)
project(${RunCMake_TEST} NONE) # or languages needed
include(${RunCMake_TEST}.cmake)

where ``${RunCMake_TEST}`` is literal. A value for ``RunCMake_TEST``
will be passed to CMake by the ``run_cmake`` macro when running each
sub-test.

5. Create a ``/.cmake`` file for each sub-test named
above containing the actual test code. Optionally create files
containing expected test results:

``-result.txt``
Regex matching expected process result, if not ``0``
``-stdout.txt``
Regex matching expected stdout content
``-stderr.txt``
Regex matching expected stderr content, if not ``^$``
``-check.cmake``
Custom result check.

Note that trailing newlines will be stripped from actual and expected
test output before matching against the stdout and stderr expressions.
The code in ``-check.cmake`` may use variables

``RunCMake_TEST_SOURCE_DIR``
Top of test source tree
``RunCMake_TEST_BINARY_DIR``
Top of test binary tree

and an failure must store a message in ``RunCMake_TEST_FAILED``.