mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 07:09:22 +00:00
5784ab8fca
Setting CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS did not auto generate shlibs control file when .so version of the library was set to 0. Fixes #17318 |
||
---|---|---|
.. | ||
add_custom_command | ||
add_custom_target | ||
add_dependencies | ||
add_executable | ||
add_library | ||
add_subdirectory | ||
alias_targets | ||
Android | ||
AndroidMK | ||
AndroidTestUtilities | ||
AutoExportDll | ||
build_command | ||
BuildDepends | ||
CheckIPOSupported | ||
CheckModules | ||
ClangTidy | ||
cmake_minimum_required | ||
cmake_parse_arguments | ||
CMP0004 | ||
CMP0019 | ||
CMP0022 | ||
CMP0026 | ||
CMP0027 | ||
CMP0028 | ||
CMP0037 | ||
CMP0038 | ||
CMP0039 | ||
CMP0040 | ||
CMP0041 | ||
CMP0042 | ||
CMP0043 | ||
CMP0045 | ||
CMP0046 | ||
CMP0049 | ||
CMP0050 | ||
CMP0051 | ||
CMP0053 | ||
CMP0054 | ||
CMP0055 | ||
CMP0057 | ||
CMP0059 | ||
CMP0060 | ||
CMP0064 | ||
CMP0065 | ||
CMP0068 | ||
CMP0069 | ||
CommandLine | ||
CommandLineTar | ||
CompatibleInterface | ||
COMPILE_LANGUAGE-genex | ||
CompileDefinitions | ||
CompileFeatures | ||
CompilerChange | ||
CompilerLauncher | ||
CompilerNotFound | ||
Configure | ||
configure_file | ||
continue | ||
CPack | ||
CPackConfig | ||
CPackInstallProperties | ||
CPackSymlinks | ||
Cppcheck | ||
Cpplint | ||
CrosscompilingEmulator | ||
CSharpCustomCommand | ||
CTest | ||
ctest_build | ||
ctest_cmake_error | ||
ctest_configure | ||
ctest_coverage | ||
ctest_disabled_test | ||
ctest_fixtures | ||
ctest_labels_for_subprojects | ||
ctest_memcheck | ||
ctest_skipped_test | ||
ctest_start | ||
ctest_submit | ||
ctest_test | ||
ctest_upload | ||
CTestCommandLine | ||
CTestTimeoutAfterMatch | ||
DisallowedCommands | ||
execute_process | ||
export | ||
ExportWithoutLanguage | ||
ExternalData | ||
ExternalProject | ||
FeatureSummary | ||
FetchContent | ||
file | ||
File_Generate | ||
find_dependency | ||
find_file | ||
find_library | ||
find_package | ||
find_path | ||
find_program | ||
FindBoost | ||
FindGTK2 | ||
FindMatlab | ||
FindPkgConfig | ||
FPHSA | ||
Framework | ||
GenerateExportHeader | ||
GeneratorExpression | ||
GeneratorInstance | ||
GeneratorPlatform | ||
GeneratorToolset | ||
get_filename_component | ||
get_property | ||
GetPrerequisites | ||
GNUInstallDirs | ||
GoogleTest | ||
if | ||
IfacePaths | ||
include | ||
include_directories | ||
include_external_msproject | ||
include_guard | ||
IncludeWhatYouUse | ||
IncompatibleQt | ||
install | ||
interface_library | ||
Languages | ||
LinkStatic | ||
LinkWhatYouUse | ||
list | ||
Make | ||
message | ||
Ninja | ||
no_install_prefix | ||
ObjectLibrary | ||
ObsoleteQtMacros | ||
PolicyScope | ||
PositionIndependentCode | ||
project | ||
return | ||
RuntimePath | ||
separate_arguments | ||
set | ||
set_property | ||
string | ||
Swift | ||
Syntax | ||
target_compile_features | ||
target_link_libraries | ||
TargetObjects | ||
TargetPolicies | ||
TargetPropertyGeneratorExpressions | ||
TargetSources | ||
test_include_dirs | ||
ToolchainFile | ||
try_compile | ||
try_run | ||
variable_watch | ||
VisibilityPreset | ||
VS10Project | ||
VSSolution | ||
while | ||
WriteCompilerDetectionHeader | ||
XcodeProject | ||
CMakeLists.txt | ||
exit_code.c | ||
pseudo_cppcheck.c | ||
pseudo_cpplint.c | ||
pseudo_emulator_custom_command.c | ||
pseudo_emulator.c | ||
pseudo_iwyu.c | ||
pseudo_tidy.c | ||
README.rst | ||
RunCMake.cmake | ||
RunCTest.cmake |
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 ``<Test>/``. 2. In ``./CMakeLists.txt`` call ``add_RunCMake_test`` and pass the test directory name ``<Test>``. 3. Create script ``<Test>/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 ``<Test>/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 ``<Test>/<SubTest>.cmake`` file for each sub-test named above containing the actual test code. Optionally create files containing expected test results: ``<SubTest>-result.txt`` Regex matching expected process result, if not ``0`` ``<SubTest>-stdout.txt`` Regex matching expected stdout content ``<SubTest>-stderr.txt`` Regex matching expected stderr content, if not ``^$`` ``<SubTest>-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 ``<SubTest>-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``.