Brad King 882f48e5ba Link libraries by full path even in implicit directories il y a 10 ans
..
CMP0004 d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
CMP0019 73ae888506 RunCMake: Expect empty output by default. il y a 11 ans
CMP0022 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0026 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0027 b1bbee3e9a Record more policies on targets when created il y a 11 ans
CMP0028 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0037 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0038 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0039 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0040 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0041 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0042 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0043 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0045 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0046 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0049 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0050 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0051 911cc9a39e cmTarget: Evaluate CMP0026 and CMP0051 in calling context il y a 11 ans
CMP0053 9ba91463e6 tests: test CMP0053 in WARN mode when watching variables il y a 11 ans
CMP0054 188a1f236e If: Introduce policy CMP0054 - don't dereference quoted variables in if() il y a 11 ans
CMP0055 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
CMP0057 242c396656 add_custom_command: Diagnose MAIN_DEPENDENCY limitation. il y a 10 ans
CMP0059 06f61c26cf Do not treat DEFINITIONS as a built-in directory property il y a 10 ans
CMP0060 882f48e5ba Link libraries by full path even in implicit directories il y a 10 ans
COMPILE_LANGUAGE-genex b734fa4471 Genex: Allow COMPILE_LANGUAGE when processing include directories. il y a 10 ans
CPackInstallProperties 15a8af21e8 Add an "installed file" property scope il y a 11 ans
CPackRPM 0ffd35340e CPack single component packaging il y a 10 ans
CPackSymlinks 5f686b8a6b Tests: Add case for CPack source package with symlinks il y a 10 ans
CTest bca67c710f build_command: Return a "cmake --build" command-line il y a 12 ans
CTestCommandLine b687d67281 Tests: Fix RunCMake.CTestCommandLine expected output time matching il y a 10 ans
CheckModules 73ae888506 RunCMake: Expect empty output by default. il y a 11 ans
CommandLine af92482712 Makefile: Tolerate a BOM while scanning source dependencies (#15493) il y a 10 ans
CompatibleInterface 93790506f5 cmTarget: Simplify INTERFACE_INCLUDE_DIRECTORIES usage requirement lookup il y a 11 ans
CompileFeatures 17b4423c45 Merge topic 'fix-crash-on-bad-LANG_STANDARD' il y a 10 ans
CompilerChange 15610bb5b1 Drop use of configure_file IMMEDIATE option il y a 12 ans
CompilerNotFound 3e04946f7b Require CMAKE_<LANG>_COMPILER to be found as a full path il y a 12 ans
Configure b2282631f6 cmTarget: Do not mistake a preceding error for a CMP0049 failure il y a 11 ans
DisallowedCommands 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
ExportWithoutLanguage 66b290e7e2 export(): Process the export() command at generate time. il y a 12 ans
ExternalData 230f2d6e70 ExternalData: Add option to recursively match under directories il y a 10 ans
ExternalProject 67cfbf8eb7 ExternalProject: Add unit tests il y a 11 ans
FPHSA 73ae888506 RunCMake: Expect empty output by default. il y a 11 ans
FeatureSummary 38ef2b7363 FeatureSummary: Print each feature info only once il y a 10 ans
File_Generate 9e1689413f File(GENERATE): Process genex evaluation files for each language. il y a 10 ans
FindMatlab 49c8dcf7bb FindMatlab: Rewrite module and provide a usage API il y a 10 ans
FindPkgConfig fa7d47ac5c Tests: Fix CMP0054 warnings il y a 11 ans
GeneratorExpression 5c559f1113 Genex: Enable use of COMPILE_LANGUAGE for compile options. il y a 10 ans
GeneratorPlatform be6a555d7e Tests: Test setting a generator platform in a toolchain file il y a 11 ans
GeneratorToolset 65624c39e3 VS14: Add Visual Studio 14 generator (#14982) il y a 11 ans
IfacePaths 6da65b3907 Allow export of targets with INTERFACE_SOURCES. il y a 10 ans
IncompatibleQt d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
Languages 73ae888506 RunCMake: Expect empty output by default. il y a 11 ans
Ninja bd9c7f9b2c Ninja: Add policy to require explicit custom command byproducts il y a 10 ans
ObjectLibrary 2c470b775a add_library: Allow arbitrary non-linked sources in OBJECT libraries il y a 11 ans
ObsoleteQtMacros f69606d335 Qt4Macros: Port to use message(DEPRECATION) il y a 12 ans
PositionIndependentCode 2e60b5fcf7 cmTarget: Report origin of COMPATIBLE_INTERFACE properties. il y a 12 ans
SolutionGlobalSections d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
Syntax 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
TargetObjects affe9d56a2 Allow INTERFACE_SOURCES to specify $<TARGET_OBJECTS> (#14970) il y a 11 ans
TargetPolicies 882f48e5ba Link libraries by full path even in implicit directories il y a 10 ans
TargetPropertyGeneratorExpressions 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
TargetSources 6da65b3907 Allow export of targets with INTERFACE_SOURCES. il y a 10 ans
VisibilityPreset d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
WriteCompilerDetectionHeader 4cf5179c77 WCDH: Make it possible to generate multiple files. il y a 11 ans
XcodeProject 0ee2a004e7 OS X: Add platform-specific Frameworks search path il y a 10 ans
add_custom_command e15a7075b5 Add an option for explicit BYPRODUCTS of custom commands (#14963) il y a 11 ans
add_custom_target e15a7075b5 Add an option for explicit BYPRODUCTS of custom commands (#14963) il y a 11 ans
add_dependencies d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
alias_targets d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
build_command 4ac75fdfe6 Prefer CMAKE_MAKE_PROGRAM over CMAKE_BUILD_TOOL (#14548) il y a 12 ans
cmake_minimum_required 7d47c69365 Drop compatibility with CMake < 2.4 il y a 12 ans
configure_file 024e25e485 Tests: Add more signature tests to RunCMake.configure_file test il y a 10 ans
continue 0de867dde2 continue: Add a new CMake language command for loop continuation (#14013) il y a 11 ans
ctest_build 49ba4545c2 ctest_build: Add QUIET option il y a 10 ans
ctest_configure f999dc0bbf ctest_configure: Add QUIET option il y a 10 ans
ctest_coverage fc58bdb9ad ctest_coverage: Add QUIET option il y a 10 ans
ctest_memcheck 6bf130979e CTest: Drop "Error in read script" message at end of testing il y a 10 ans
ctest_start 19d1a5599a ctest_start: Add QUIET option il y a 10 ans
ctest_submit 6bf130979e CTest: Drop "Error in read script" message at end of testing il y a 10 ans
ctest_test 876a680d48 ctest_test: Add QUIET option il y a 10 ans
ctest_upload ff1ddd2a73 ctest_upload: Add QUIET option il y a 10 ans
export cbe7e8fae4 export: Implement EXPORT subcommand (#9822) il y a 12 ans
file a2c068a7ce file: Teach GLOB to list directories optionally il y a 10 ans
find_dependency a25b809f20 Tests: Check find_dependency empty extra arguments il y a 11 ans
find_file ffc06c1239 Teach find_(library|file|path) to get prefixes from PATH (#15370) il y a 10 ans
find_library ffc06c1239 Teach find_(library|file|path) to get prefixes from PATH (#15370) il y a 10 ans
find_package d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
find_path ffc06c1239 Teach find_(library|file|path) to get prefixes from PATH (#15370) il y a 10 ans
get_filename_component d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
get_property c6d03a1072 tests: add tests for querying properties il y a 11 ans
if d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
include 77b581c2f0 Policies: omit warnings about unset policies when they are actually set to NEW il y a 11 ans
include_directories cc15209476 Tests: Split part of include_directories test to a generic location. il y a 10 ans
include_external_msproject 09ab207c66 Tests: Add generator platform support il y a 11 ans
install f30022eb07 install: Allow generator expressions in TARGETS DESTINATION (#14317) il y a 10 ans
interface_library ac14cbf017 Allow add_dependencies() on INTERFACE libraries (#15414) il y a 10 ans
list d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
message 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
no_install_prefix 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
project 1c3918ff02 RunCMake: Remove unneeded files. il y a 10 ans
return d124c41168 return: Add test for returning inside a foreach loop il y a 11 ans
set d1b62185d6 Merge branch 'parent-scope-tests' into variable-pull-failure il y a 11 ans
string 1f77a7001b file: Teach STRINGS to support UTF-16 and UTF-32 encodings il y a 10 ans
target_compile_features e0890d03a4 Features: Extend concept to C language. il y a 11 ans
target_link_libraries 77b581c2f0 Policies: omit warnings about unset policies when they are actually set to NEW il y a 11 ans
try_compile 33daec1ae9 Merge topic 'test-rerun-cmake' il y a 10 ans
try_run 223c5cb70b try_run: Add test for bad link libraries. il y a 10 ans
variable_watch d05a9bd1e6 Cygwin: Avoid legacy warnings in RunCMake.* tests il y a 12 ans
CMakeLists.txt 882f48e5ba Link libraries by full path even in implicit directories il y a 10 ans
README.rst 9b50388b09 Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck) il y a 10 ans
RunCMake.cmake 1535dcd894 Tests: Teach RunCMake to optionally merge command output to stdout il y a 10 ans
RunCTest.cmake 9b50388b09 Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck) il y a 10 ans

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