You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felix Geyer 4a69966b60
Imported Upstream version 3.5.0
9 years ago
..
AutoExportDll Imported Upstream version 3.4.1 9 years ago
BuildDepends Imported Upstream version 3.5.0 9 years ago
CMP0004 Imported Upstream version 2.8.12 11 years ago
CMP0019 Imported Upstream version 3.4.0 9 years ago
CMP0022 Imported Upstream version 3.3.1 9 years ago
CMP0026 Imported Upstream version 3.4.0 9 years ago
CMP0027 Imported Upstream version 3.0.0 11 years ago
CMP0028 Imported Upstream version 3.3.1 9 years ago
CMP0037 Imported Upstream version 3.3.1 9 years ago
CMP0038 Imported Upstream version 3.3.1 9 years ago
CMP0039 Imported Upstream version 3.3.1 9 years ago
CMP0040 Imported Upstream version 3.5.0 9 years ago
CMP0041 Imported Upstream version 3.3.1 9 years ago
CMP0042 Imported Upstream version 3.3.1 9 years ago
CMP0043 Imported Upstream version 3.3.1 9 years ago
CMP0045 Imported Upstream version 3.3.1 9 years ago
CMP0046 Imported Upstream version 3.3.1 9 years ago
CMP0049 Imported Upstream version 3.3.1 9 years ago
CMP0050 Imported Upstream version 3.3.1 9 years ago
CMP0051 Imported Upstream version 3.2.2 10 years ago
CMP0053 Imported Upstream version 3.2.2 10 years ago
CMP0054 Imported Upstream version 3.4.0 9 years ago
CMP0055 Imported Upstream version 3.3.1 9 years ago
CMP0057 Imported Upstream version 3.3.1 9 years ago
CMP0059 Imported Upstream version 3.3.1 9 years ago
CMP0060 Imported Upstream version 3.3.1 9 years ago
CMP0064 Imported Upstream version 3.4.0 9 years ago
CMP0065 Imported Upstream version 3.4.0 9 years ago
COMPILE_LANGUAGE-genex Imported Upstream version 3.3.1 9 years ago
CPack Imported Upstream version 3.5.0 9 years ago
CPackConfig Imported Upstream version 3.4.0 9 years ago
CPackInstallProperties Imported Upstream version 3.2.2 10 years ago
CPackSymlinks Imported Upstream version 3.3.1 9 years ago
CTest Imported Upstream version 3.3.1 9 years ago
CTestCommandLine Imported Upstream version 3.4.0 9 years ago
CheckModules Imported Upstream version 3.2.2 10 years ago
CommandLine Imported Upstream version 3.5.0 9 years ago
CommandLineTar Imported Upstream version 3.3.1 9 years ago
CompatibleInterface Imported Upstream version 3.0.0 11 years ago
CompileDefinitions Imported Upstream version 3.4.0 9 years ago
CompileFeatures Imported Upstream version 3.4.0 9 years ago
CompilerChange Imported Upstream version 3.0.0 11 years ago
CompilerLauncher Imported Upstream version 3.4.0 9 years ago
CompilerNotFound Imported Upstream version 3.4.0 9 years ago
Configure Imported Upstream version 3.2.2 10 years ago
CrosscompilingEmulator Imported Upstream version 3.3.1 9 years ago
DisallowedCommands Imported Upstream version 3.3.1 9 years ago
ExportWithoutLanguage Imported Upstream version 3.0.0 11 years ago
ExternalData Imported Upstream version 3.3.1 9 years ago
ExternalProject Imported Upstream version 3.4.0 9 years ago
FPHSA Imported Upstream version 3.2.2 10 years ago
FeatureSummary Imported Upstream version 3.3.1 9 years ago
File_Generate Imported Upstream version 3.3.1 9 years ago
FindMatlab Imported Upstream version 3.3.1 9 years ago
FindPkgConfig Imported Upstream version 3.5.0 9 years ago
Framework Imported Upstream version 3.5.0 9 years ago
GNUInstallDirs Imported Upstream version 3.4.0 9 years ago
GeneratorExpression Imported Upstream version 3.4.0 9 years ago
GeneratorPlatform Imported Upstream version 3.2.2 10 years ago
GeneratorToolset Imported Upstream version 3.2.2 10 years ago
IfacePaths Imported Upstream version 3.3.1 9 years ago
IncludeWhatYouUse Imported Upstream version 3.3.1 9 years ago
IncompatibleQt Imported Upstream version 2.8.12 11 years ago
Languages Imported Upstream version 3.4.0 9 years ago
LinkStatic Imported Upstream version 3.4.0 9 years ago
Make Imported Upstream version 3.4.0 9 years ago
Ninja Imported Upstream version 3.3.1 9 years ago
ObjectLibrary Imported Upstream version 3.2.2 10 years ago
ObsoleteQtMacros Imported Upstream version 3.0.0 11 years ago
PolicyScope Imported Upstream version 3.4.1 9 years ago
PositionIndependentCode Imported Upstream version 3.0.0 11 years ago
SolutionGlobalSections Imported Upstream version 2.8.12 11 years ago
Swift Imported Upstream version 3.4.0 9 years ago
Syntax Imported Upstream version 3.4.0 9 years ago
TargetObjects Imported Upstream version 3.2.2 10 years ago
TargetPolicies Imported Upstream version 3.4.0 9 years ago
TargetPropertyGeneratorExpressions Imported Upstream version 3.3.1 9 years ago
TargetSources Imported Upstream version 3.3.1 9 years ago
VisibilityPreset Imported Upstream version 3.5.0 9 years ago
WriteCompilerDetectionHeader Imported Upstream version 3.2.2 10 years ago
XcodeProject Imported Upstream version 3.5.0 9 years ago
add_custom_command Imported Upstream version 3.5.0 9 years ago
add_custom_target Imported Upstream version 3.2.2 10 years ago
add_dependencies Imported Upstream version 2.8.12 11 years ago
add_subdirectory Imported Upstream version 3.4.1 9 years ago
alias_targets Imported Upstream version 2.8.12 11 years ago
build_command Imported Upstream version 3.3.1 9 years ago
cmake_minimum_required Imported Upstream version 3.0.0 11 years ago
cmake_parse_arguments Imported Upstream version 3.5.0 9 years ago
configure_file Imported Upstream version 3.2.2 10 years ago
continue Imported Upstream version 3.2.2 10 years ago
ctest_build Imported Upstream version 3.4.0 9 years ago
ctest_configure Imported Upstream version 3.3.1 9 years ago
ctest_coverage Imported Upstream version 3.3.1 9 years ago
ctest_memcheck Imported Upstream version 3.3.1 9 years ago
ctest_start Imported Upstream version 3.4.0 9 years ago
ctest_submit Imported Upstream version 3.5.0 9 years ago
ctest_test Imported Upstream version 3.5.0 9 years ago
ctest_upload Imported Upstream version 3.3.1 9 years ago
execute_process Imported Upstream version 3.3.1 9 years ago
export Imported Upstream version 3.4.0 9 years ago
file Imported Upstream version 3.3.1 9 years ago
find_dependency Imported Upstream version 3.2.2 10 years ago
find_file Imported Upstream version 3.3.1 9 years ago
find_library Imported Upstream version 3.3.1 9 years ago
find_package Imported Upstream version 3.4.1 9 years ago
find_path Imported Upstream version 3.3.1 9 years ago
find_program Imported Upstream version 3.4.0 9 years ago
get_filename_component Imported Upstream version 3.4.0 9 years ago
get_property Imported Upstream version 3.4.0 9 years ago
if Imported Upstream version 3.5.0 9 years ago
include Imported Upstream version 3.0.0 11 years ago
include_directories Imported Upstream version 3.4.0 9 years ago
include_external_msproject Imported Upstream version 3.2.2 10 years ago
install Imported Upstream version 3.5.0 9 years ago
interface_library Imported Upstream version 3.3.1 9 years ago
list Imported Upstream version 3.4.0 9 years ago
message Imported Upstream version 3.5.0 9 years ago
no_install_prefix Imported Upstream version 3.3.1 9 years ago
project Imported Upstream version 3.3.1 9 years ago
return Imported Upstream version 3.2.2 10 years ago
set Imported Upstream version 3.2.2 10 years ago
set_property Imported Upstream version 3.4.0 9 years ago
string Imported Upstream version 3.4.0 9 years ago
target_compile_features Imported Upstream version 3.2.2 10 years ago
target_link_libraries Imported Upstream version 3.5.0 9 years ago
try_compile Imported Upstream version 3.2.2 10 years ago
try_run Imported Upstream version 3.2.2 10 years ago
variable_watch Imported Upstream version 2.8.12 11 years ago
while Imported Upstream version 3.4.0 9 years ago
CMakeLists.txt Imported Upstream version 3.5.0 9 years ago
README.rst Imported Upstream version 3.3.1 9 years ago
RunCMake.cmake Imported Upstream version 3.4.0 9 years ago
RunCTest.cmake Imported Upstream version 3.3.1 9 years ago
pseudo_emulator.c Imported Upstream version 3.3.1 9 years ago
pseudo_iwyu.c Imported Upstream version 3.3.1 9 years ago

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``
Process result expected 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``.