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