cmake-modules(7)¶
此处列出的模块是 CMake 发行版的一部分。项目可以提供更多模块;它们的位置可以在 CMAKE_MODULE_PATH
变量中指定。
实用程序模块¶
这些模块使用 include()
命令加载。
- AndroidTestUtilities
- BundleUtilities
- CheckCCompilerFlag
- CheckCompilerFlag
- CheckCSourceCompiles
- CheckCSourceRuns
- CheckCXXCompilerFlag
- CheckCXXSourceCompiles
- CheckCXXSourceRuns
- CheckCXXSymbolExists
- CheckFortranCompilerFlag
- CheckFortranFunctionExists
- CheckFortranSourceCompiles
- CheckFortranSourceRuns
- CheckFunctionExists
- CheckIncludeFileCXX
- CheckIncludeFile
- CheckIncludeFiles
- CheckIPOSupported
- CheckLanguage
- CheckLibraryExists
- CheckLinkerFlag
- CheckOBJCCompilerFlag
- CheckOBJCSourceCompiles
- CheckOBJCSourceRuns
- CheckOBJCXXCompilerFlag
- CheckOBJCXXSourceCompiles
- CheckOBJCXXSourceRuns
- CheckPIESupported
- CheckPrototypeDefinition
- CheckSourceCompiles
- CheckSourceRuns
- CheckStructHasMember
- CheckSymbolExists
- CheckTypeSize
- CheckVariableExists
- CMakeAddFortranSubdirectory
- CMakeBackwardCompatibilityCXX
- CMakeDependentOption
- CMakeFindDependencyMacro
- CMakeFindPackageMode
- CMakeGraphVizOptions
- CMakePackageConfigHelpers
- CMakePrintHelpers
- CMakePrintSystemInformation
- CMakePushCheckState
- CMakeVerifyManifest
- CPack
- CPackComponent
- CPackIFW
- CPackIFWConfigureFile
- CSharpUtilities
- CTest
- CTestCoverageCollectGCOV
- CTestScriptMode
- CTestUseLaunchers
- DeployQt4
- ExternalData
- ExternalProject
- FeatureSummary
- FetchContent
- FindPackageHandleStandardArgs
- FindPackageMessage
- FortranCInterface
- GenerateExportHeader
- GNUInstallDirs
- GoogleTest
- InstallRequiredSystemLibraries
- ProcessorCount
- SelectLibraryConfigurations
- SquishTestScript
- TestForANSIForScope
- TestForANSIStreamHeaders
- TestForSSTREAM
- TestForSTDNamespace
- UseEcos
- UseJava
- UseSWIG
- UsewxWidgets
查找模块¶
这些模块搜索第三方软件。它们通常通过 find_package()
命令调用。
- FindALSA
- FindArmadillo
- FindASPELL
- FindAVIFile
- FindBacktrace
- FindBISON
- FindBLAS
- FindBullet
- FindBZip2
- FindCABLE
- FindCoin3D
- FindCUDAToolkit
- FindCups
- FindCURL
- FindCurses
- FindCVS
- FindCxxTest
- FindCygwin
- FindDCMTK
- FindDevIL
- FindDoxygen
- FindEnvModules
- FindEXPAT
- FindFLEX
- FindFLTK
- FindFLTK2
- FindFontconfig
- FindFreetype
- FindGCCXML
- FindGDAL
- FindGettext
- FindGIF
- FindGit
- FindGLEW
- FindGLUT
- FindGnuplot
- FindGnuTLS
- FindGSL
- FindGTest
- FindGTK
- FindGTK2
- FindHDF5
- FindHg
- FindHSPELL
- FindHTMLHelp
- FindIce
- FindIconv
- FindIcotool
- FindICU
- FindImageMagick
- FindIntl
- FindJasper
- FindJava
- FindJNI
- FindJPEG
- FindKDE3
- FindKDE4
- FindLAPACK
- FindLATEX
- FindLibArchive
- FindLibinput
- FindLibLZMA
- FindLibXml2
- FindLibXslt
- FindLTTngUST
- FindLua
- FindLua50
- FindLua51
- FindMatlab
- FindMFC
- FindMotif
- FindMPEG
- FindMPEG2
- FindMPI
- FindMsys
- FindODBC
- FindOpenACC
- FindOpenAL
- FindOpenCL
- FindOpenGL
- FindOpenMP
- FindOpenSceneGraph
- FindOpenSP
- FindOpenSSL
- FindOpenThreads
- Findosg
- Findosg_functions
- FindosgAnimation
- FindosgDB
- FindosgFX
- FindosgGA
- FindosgIntrospection
- FindosgManipulator
- FindosgParticle
- FindosgPresentation
- FindosgProducer
- FindosgQt
- FindosgShadow
- FindosgSim
- FindosgTerrain
- FindosgText
- FindosgUtil
- FindosgViewer
- FindosgVolume
- FindosgWidget
- FindPatch
- FindPerl
- FindPerlLibs
- FindPHP4
- FindPhysFS
- FindPike
- FindPkgConfig
- FindPNG
- FindPostgreSQL
- FindProducer
- FindProtobuf
- FindPython
- FindPython2
- FindPython3
- FindQt3
- FindQt4
- FindQuickTime
- FindRTI
- FindRuby
- FindSDL
- FindSDL_image
- FindSDL_gfx
- FindSDL_mixer
- FindSDL_net
- FindSDL_sound
- FindSDL_ttf
- FindSelfPackers
- FindSquish
- FindSQLite3
- FindSubversion
- FindSWIG
- FindTCL
- FindTclsh
- FindTclStub
- FindThreads
- FindTIFF
- FindVulkan
- FindWget
- FindWish
- FindwxWidgets
- FindX11
- FindXalanC
- FindXCTest
- FindXercesC
- FindXMLRPC
- FindZLIB
已弃用模块¶
已弃用的实用程序模块¶
- AddFileDependencies
- CMakeDetermineVSServicePack
- CMakeExpandImportedTargets
- CMakeFindFrameworks
- CMakeForceCompiler
- CMakeParseArguments
- Dart
- Documentation
- GetPrerequisites
- MacroAddFileDependencies
- TestBigEndian
- TestCXXAcceptsFlag
- UseJavaClassFilelist
- UseJavaSymlinks
- UsePkgConfig
- Use_wxWindows
- WriteBasicConfigVersionFile
- WriteCompilerDetectionHeader
已弃用的查找模块¶
旧版 CPack 模块¶
这些模块过去曾错误地公开给用户,并且已被移出用户可见范围。它们供 CPack 内部使用,不应直接使用。