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``.