CMake/Tests
Cristian Adam acb9511044 Precompile headers: Treat headers as relative to current source directory
Teach `target_precompile_headers` to treat relative paths the
same way as `target_sources`.

Fixes: #19733
2019-09-23 11:13:13 -04:00
..
AliasTarget
Architecture
ArgumentExpansion
Assembler
BuildDepends
BundleGeneratorTest
BundleTest Xcode: Make BundleTests compatible with Xcode 11 2019-09-01 10:43:26 +02:00
BundleUtilities
CFBundleTest Xcode: Make BundleTests compatible with Xcode 11 2019-09-01 10:43:26 +02:00
CheckCompilerRelatedVariables
CMakeCommands
CMakeLib cmstd: Modernize CMake system headers 2019-09-20 10:01:37 -04:00
CMakeOnly
CMakeServerLib
CMakeTestAllGenerators
CMakeTestMultipleConfigures
CMakeTests
CoberturaCoverage
CommandLength
CommandLineTest
CompatibleInterface
CompileCommandOutput
CompileDefinitions
CompileFeatures
CompileOptions
Complex
ComplexOneConfig
ConfigSources
COnly Tests: Collect SourceFileProperty tests 2019-08-27 22:28:34 +05:30
Contracts
CPackComponents
CPackComponentsDEB
CPackComponentsForAll
CPackComponentsPrefix
CPackTestAllGenerators
CPackUseDefaultVersion
CPackUseProjectVersion
CPackUseShortProjectVersion
CPackWiXGenerator
CrossCompile
CSharpLinkFromCxx
CSharpLinkToCxx
CSharpOnly
CTestBuildCommandProjectInSubdir
CTestConfig
CTestCoverageCollectGCOV
CTestLimitDashJ
CTestScriptMode
CTestTest
CTestTest2
CTestTestBadExe
CTestTestBadGenerator
CTestTestChecksum
CTestTestCostSerial
CTestTestCrash
CTestTestCycle
CTestTestDepends
CTestTestEmptyBinaryDirectory
CTestTestFailure
CTestTestFdSetSize
CTestTestLabelRegExp
CTestTestLaunchers
CTestTestMissingDependsExe
CTestTestParallel
CTestTestResourceLock
CTestTestRunScript
CTestTestScheduler
CTestTestSerialInDepends
CTestTestSerialOrder
CTestTestSkipReturnCode
CTestTestStopTime
CTestTestSubdir
CTestTestTimeout
CTestTestUpload
CTestTestVerboseOutput
CTestTestZeroTimeout
Cuda
CudaOnly CUDA: static lib device linking computes required static libs 2019-09-05 10:51:02 -04:00
CustComDepend
CustomCommand
CustomCommandByproducts Byproducts: Add test for collapsing of full paths in byproducts 2019-09-16 10:24:24 +02:00
CustomCommandWorkingDirectory
CxxDialect
CxxOnly
CxxSubdirC
DelphiCoverage
Dependency
DoubleProject
EmptyDepends
EmptyLibrary
EmptyProperty
Environment
ExportImport
ExternalOBJ
ExternalProject
ExternalProjectLocal
ExternalProjectSourceSubdir
ExternalProjectSourceSubdirNotCMake
ExternalProjectSubdir
ExternalProjectUpdate
FindALSA
FindBoost
FindBZip2
FindCups
FindCURL
FindDoxygen FindDoxygen: add USE_STAMP_FILE option 2019-09-06 09:12:09 +10:00
FindEnvModules FindEnvMod: Remove unreliable test case 2019-09-16 13:10:40 -04:00
FindEXPAT
FindFontconfig
FindFreetype
FindGDAL
FindGIF
FindGit
FindGLEW
FindGnuTLS FindGnuTLS: add target GnuTLS::GnuTLS 2019-09-18 12:03:53 -04:00
FindGSL
FindGTest
FindGTK2
FindIconv
FindICU
FindJPEG
FindJsonCpp
FindLibinput
FindLibLZMA
FindLibRHash
FindLibUV
FindLibXml2
FindLTTngUST
FindMatlab
FindModulesExecuteAll
FindMPI
FindODBC
FindOpenACC
FindOpenCL
FindOpenGL
FindOpenMP
FindOpenSSL
FindPackageModeMakefileTest
FindPackageTest
FindPatch
FindPNG
FindPostgreSQL
FindProtobuf
FindPython FindPython: Add capability to specify directly artifacts 2019-09-02 17:20:53 +02:00
FindSQLite3
FindThreads
FindTIFF
FindVulkan
FindX11
FindXalanC
FindXercesC
ForceInclude
Fortran
FortranC
FortranModules
FortranOnly Ninja: Pass preprocessor definitions when compiling with Intel Fortran 2019-09-03 14:20:26 -04:00
Framework
FunctionTest
GeneratorExpression add_custom_command: Delay slash conversion until after genex evaluation 2019-09-13 10:56:26 -04:00
GhsMulti
GoogleTest
ImportedSameName
IncludeDirectories
IncludeDirectoriesCPATH
InterfaceLibrary
InterfaceLinkLibraries
iOSNavApp
JacocoCoverage
Java
JavaExportImport
JavaJavah
JavaNativeHeaders
JavascriptCoverage
JCTest
Jump
LibName
LinkDirectory
LinkFlags
LinkLanguage
LinkLine
LinkLineOrder
LinkStatic
LoadCommand
LoadCommandOneConfig
MacroTest
MacRuntimePath
MakeClean Tests: Extend MakeClean test to test various target types 2019-08-26 09:31:03 -04:00
MathTest
MFC
MissingInstall
MissingSourceFile
Module bindexplib: supporting llvm bitcode formats using llvm-nm 2019-08-30 11:30:38 -04:00
ModuleDefinition
MSManifest
MSVCRuntimeLibrary
MumpsCoverage
NewlineArgs
ObjC++
ObjectLibrary
OutDir
OutName
OutOfBinary
OutOfSource
PDBDirectoryAndName
PerConfig
Plugin Tests: Decouple Plugin test from KWSys 2019-09-19 10:42:51 -04:00
Policy0002
PolicyScope
PositionIndependentTargets
PrecompiledHeader
PreOrder
Preprocess
Properties
PythonCoverage
Qt4And5Automoc
Qt4Autogen
Qt4Deploy
Qt4Targets
Qt5Autogen
QtAutogen Tests: At QtAutogen.MocIncludeSymlink test 2019-09-18 11:48:23 -04:00
QtAutomocNoQt
ReturnTest
RunCMake Precompile headers: Treat headers as relative to current source directory 2019-09-23 11:13:13 -04:00
RuntimePath
SBCS
Server
SetLang
Simple
SimpleCOnly
SourceFileIncludeDirProperty
SourceFileProperty Tests: Collect SourceFileProperty tests 2019-08-27 22:28:34 +05:30
SourceGroups
SourcesProperty
StagingPrefix
StringFileTest
SubDir
SubDirSpaces
SubProject
SwiftMix
SwiftOnly
SystemInformation
TargetName
TestDriver
Testing
TestsWorkingDirectory
TryCompile
Unset
UseSWIG
VariableUnusedViaSet
VariableUnusedViaUnset
VariableUsage
Visibility
VSExcludeFromDefaultBuild
VSExternalInclude
VSGNUFortran
VSMASM
VSMidl
VSNASM
VSNsightTegra
VSProjectInSubdir
VSResource
VSResourceNinjaForceRSP
VSWindowsFormsResx
VSWinStorePhone
VSXaml
WarnUnusedCliUnused
Wrapping
X11
XCTest
.NoDartCoverage
bootstrap.bat.in
BootstrapTest.cmake
CheckFortran.cmake
CheckSwift.cmake
CMakeBuildTest.cmake.in
CMakeCopyright.cmake
CMakeInstall.cmake
CMakeLists.txt FindGnuTLS: add target GnuTLS::GnuTLS 2019-09-18 12:03:53 -04:00
CTestUpdateBZR.cmake.in
CTestUpdateCommon.cmake
CTestUpdateCVS.cmake.in
CTestUpdateGIT.cmake.in
CTestUpdateGIT.sh.in
CTestUpdateHG.cmake.in
CTestUpdateP4.cmake.in
CTestUpdateSVN.cmake.in
EnforceConfig.cmake.in
README.rst
test_clean.cmake.in

CMake Tests Directory
*********************

This directory contains the CMake test suite.
See also the `CMake Source Code Guide`_.

.. _`CMake Source Code Guide`: ../Help/dev/source.rst

Many tests exist as immediate subdirectories, but some tests
are organized as follows.

* ``CMakeLib/``:
  Source code, used for tests, that links to the ``CMakeLib`` library
  defined over in ``Source/``.

* ``CMakeOnly/``:
  Deprecated.  Tests that run CMake to generate a project but not build it.
  Superseded by ``Tests/RunCMake/``.

* ``Find*/``:
  Tests for specific find modules that can only be run on machines with
  the corresponding packages installed.  They are enabled in
  ``CMakeLists.txt`` by undocumented options used on CI builds.

* ``Module/``:
  Tests for specific CMake modules.

* ``RunCMake/``:
  Tests that run CMake and/or other tools while precisely checking
  their return code and stdout/stderr content.  Useful for testing
  error cases and diagnostic output.