Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.9
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
cmake3 /
Modules /
[ HOME SHELL ]
Name
Size
Permission
Action
AndroidTestUtilities
[ DIR ]
drwxr-xr-x
CMakeAddFortranSubdirectory
[ DIR ]
drwxr-xr-x
CheckIPOSupported
[ DIR ]
drwxr-xr-x
Compiler
[ DIR ]
drwxr-xr-x
CompilerId
[ DIR ]
drwxr-xr-x
FetchContent
[ DIR ]
drwxr-xr-x
FindCUDA
[ DIR ]
drwxr-xr-x
FindMPI
[ DIR ]
drwxr-xr-x
FindPython
[ DIR ]
drwxr-xr-x
FortranCInterface
[ DIR ]
drwxr-xr-x
IntelVSImplicitPath
[ DIR ]
drwxr-xr-x
Internal
[ DIR ]
drwxr-xr-x
Platform
[ DIR ]
drwxr-xr-x
UseSWIG
[ DIR ]
drwxr-xr-x
AddFileDependencies.cmake
784
B
-rw-r--r--
AndroidTestUtilities.cmake
6.19
KB
-rw-r--r--
BasicConfigVersion-AnyNewerVer...
1.43
KB
-rw-r--r--
BasicConfigVersion-ExactVersio...
1.89
KB
-rw-r--r--
BasicConfigVersion-SameMajorVe...
1.78
KB
-rw-r--r--
BasicConfigVersion-SameMinorVe...
1.94
KB
-rw-r--r--
BundleUtilities.cmake
40.51
KB
-rw-r--r--
CMake.cmake
307
B
-rw-r--r--
CMakeASM-ATTInformation.cmake
566
B
-rw-r--r--
CMakeASMCompiler.cmake.in
866
B
-rw-r--r--
CMakeASMInformation.cmake
4.17
KB
-rw-r--r--
CMakeASM_MASMInformation.cmake
919
B
-rw-r--r--
CMakeASM_NASMInformation.cmake
1.06
KB
-rw-r--r--
CMakeAddFortranSubdirectory.cm...
7.13
KB
-rw-r--r--
CMakeAddNewLanguage.txt
1.49
KB
-rw-r--r--
CMakeBackwardCompatibilityC.cm...
2.54
KB
-rw-r--r--
CMakeBackwardCompatibilityCXX....
1.77
KB
-rw-r--r--
CMakeBorlandFindMake.cmake
271
B
-rw-r--r--
CMakeBuildSettings.cmake.in
681
B
-rw-r--r--
CMakeCCompiler.cmake.in
2.9
KB
-rw-r--r--
CMakeCCompilerABI.c
414
B
-rw-r--r--
CMakeCCompilerId.c.in
2.16
KB
-rw-r--r--
CMakeCInformation.cmake
6.29
KB
-rw-r--r--
CMakeCSharpCompiler.cmake.in
477
B
-rw-r--r--
CMakeCSharpCompilerId.cs.in
1.4
KB
-rw-r--r--
CMakeCSharpInformation.cmake
2.94
KB
-rw-r--r--
CMakeCUDACompiler.cmake.in
2.66
KB
-rw-r--r--
CMakeCUDACompilerABI.cu
297
B
-rw-r--r--
CMakeCUDACompilerId.cu.in
1.33
KB
-rw-r--r--
CMakeCUDAInformation.cmake
8.16
KB
-rw-r--r--
CMakeCXXCompiler.cmake.in
3.5
KB
-rw-r--r--
CMakeCXXCompilerABI.cpp
291
B
-rw-r--r--
CMakeCXXCompilerId.cpp.in
2.2
KB
-rw-r--r--
CMakeCXXInformation.cmake
9.49
KB
-rw-r--r--
CMakeCheckCompilerFlagCommonPa...
2.02
KB
-rw-r--r--
CMakeCommonLanguageInclude.cma...
1.12
KB
-rw-r--r--
CMakeCompilerABI.h
1
KB
-rw-r--r--
CMakeCompilerIdDetection.cmake
4.57
KB
-rw-r--r--
CMakeConfigurableFile.in
34
B
-rw-r--r--
CMakeDependentOption.cmake
1.88
KB
-rw-r--r--
CMakeDetermineASM-ATTCompiler....
394
B
-rw-r--r--
CMakeDetermineASMCompiler.cmak...
9.72
KB
-rw-r--r--
CMakeDetermineASM_MASMCompiler...
586
B
-rw-r--r--
CMakeDetermineASM_NASMCompiler...
937
B
-rw-r--r--
CMakeDetermineCCompiler.cmake
7.78
KB
-rw-r--r--
CMakeDetermineCSharpCompiler.c...
1.63
KB
-rw-r--r--
CMakeDetermineCUDACompiler.cma...
11.36
KB
-rw-r--r--
CMakeDetermineCXXCompiler.cmak...
7.86
KB
-rw-r--r--
CMakeDetermineCompileFeatures....
5.49
KB
-rw-r--r--
CMakeDetermineCompiler.cmake
4.88
KB
-rw-r--r--
CMakeDetermineCompilerABI.cmak...
8.03
KB
-rw-r--r--
CMakeDetermineCompilerId.cmake
39.62
KB
-rw-r--r--
CMakeDetermineFortranCompiler....
11.84
KB
-rw-r--r--
CMakeDetermineJavaCompiler.cma...
3.68
KB
-rw-r--r--
CMakeDetermineOBJCCompiler.cma...
7.35
KB
-rw-r--r--
CMakeDetermineOBJCXXCompiler.c...
7.74
KB
-rw-r--r--
CMakeDetermineRCCompiler.cmake
2.06
KB
-rw-r--r--
CMakeDetermineSwiftCompiler.cm...
2.94
KB
-rw-r--r--
CMakeDetermineSystem.cmake
7.65
KB
-rw-r--r--
CMakeDetermineVSServicePack.cm...
5.89
KB
-rw-r--r--
CMakeExpandImportedTargets.cma...
5.95
KB
-rw-r--r--
CMakeExportBuildSettings.cmake
1.21
KB
-rw-r--r--
CMakeExtraGeneratorDetermineCo...
5.11
KB
-rw-r--r--
CMakeFindBinUtils.cmake
6.4
KB
-rw-r--r--
CMakeFindCodeBlocks.cmake
1.72
KB
-rw-r--r--
CMakeFindDependencyMacro.cmake
2.11
KB
-rw-r--r--
CMakeFindEclipseCDT4.cmake
4.84
KB
-rw-r--r--
CMakeFindFrameworks.cmake
1.11
KB
-rw-r--r--
CMakeFindJavaCommon.cmake
1
KB
-rw-r--r--
CMakeFindKate.cmake
1.02
KB
-rw-r--r--
CMakeFindPackageMode.cmake
6.09
KB
-rw-r--r--
CMakeFindSublimeText2.cmake
1.01
KB
-rw-r--r--
CMakeFindWMake.cmake
272
B
-rw-r--r--
CMakeFindXCode.cmake
250
B
-rw-r--r--
CMakeForceCompiler.cmake
4.11
KB
-rw-r--r--
CMakeFortranCompiler.cmake.in
2.77
KB
-rw-r--r--
CMakeFortranCompilerABI.F
1.09
KB
-rw-r--r--
CMakeFortranCompilerId.F.in
7.3
KB
-rw-r--r--
CMakeFortranInformation.cmake
8.54
KB
-rw-r--r--
CMakeGenericSystem.cmake
6.7
KB
-rw-r--r--
CMakeGraphVizOptions.cmake
3.71
KB
-rw-r--r--
CMakeIOSInstallCombined.cmake
9.41
KB
-rw-r--r--
CMakeImportBuildSettings.cmake
535
B
-rw-r--r--
CMakeInitializeConfigs.cmake
1.54
KB
-rw-r--r--
CMakeJOMFindMake.cmake
270
B
-rw-r--r--
CMakeJavaCompiler.cmake.in
538
B
-rw-r--r--
CMakeJavaInformation.cmake
1.74
KB
-rw-r--r--
CMakeLanguageInformation.cmake
1.23
KB
-rw-r--r--
CMakeMSYSFindMake.cmake
489
B
-rw-r--r--
CMakeMinGWFindMake.cmake
437
B
-rw-r--r--
CMakeNMakeFindMake.cmake
272
B
-rw-r--r--
CMakeNinjaFindMake.cmake
315
B
-rw-r--r--
CMakeOBJCCompiler.cmake.in
2.89
KB
-rw-r--r--
CMakeOBJCCompilerABI.m
459
B
-rw-r--r--
CMakeOBJCCompilerId.m.in
1.71
KB
-rw-r--r--
CMakeOBJCInformation.cmake
6.63
KB
-rw-r--r--
CMakeOBJCXXCompiler.cmake.in
3.42
KB
-rw-r--r--
CMakeOBJCXXCompilerABI.mm
460
B
-rw-r--r--
CMakeOBJCXXCompilerId.mm.in
1.76
KB
-rw-r--r--
CMakeOBJCXXInformation.cmake
9.94
KB
-rw-r--r--
CMakePackageConfigHelpers.cmak...
13.5
KB
-rw-r--r--
CMakeParseArguments.cmake
581
B
-rw-r--r--
CMakeParseImplicitIncludeInfo....
9.13
KB
-rw-r--r--
CMakeParseImplicitLinkInfo.cma...
8.54
KB
-rw-r--r--
CMakePlatformId.h.in
7
KB
-rw-r--r--
CMakePrintHelpers.cmake
4.02
KB
-rw-r--r--
CMakePrintSystemInformation.cm...
2.11
KB
-rw-r--r--
CMakePushCheckState.cmake
3.85
KB
-rw-r--r--
CMakeRCCompiler.cmake.in
270
B
-rw-r--r--
CMakeRCInformation.cmake
1.94
KB
-rw-r--r--
CMakeSwiftCompiler.cmake.in
635
B
-rw-r--r--
CMakeSwiftInformation.cmake
4.93
KB
-rw-r--r--
CMakeSystem.cmake.in
563
B
-rw-r--r--
CMakeSystemSpecificInformation...
2.33
KB
-rw-r--r--
CMakeSystemSpecificInitialize....
1
KB
-rw-r--r--
CMakeTestASM-ATTCompiler.cmake
527
B
-rw-r--r--
CMakeTestASMCompiler.cmake
865
B
-rw-r--r--
CMakeTestASM_MASMCompiler.cmak...
556
B
-rw-r--r--
CMakeTestASM_NASMCompiler.cmak...
529
B
-rw-r--r--
CMakeTestCCompiler.cmake
3.68
KB
-rw-r--r--
CMakeTestCSharpCompiler.cmake
2.68
KB
-rw-r--r--
CMakeTestCUDACompiler.cmake
4.11
KB
-rw-r--r--
CMakeTestCXXCompiler.cmake
3.57
KB
-rw-r--r--
CMakeTestCompilerCommon.cmake
1.3
KB
-rw-r--r--
CMakeTestFortranCompiler.cmake
4.17
KB
-rw-r--r--
CMakeTestGNU.c
175
B
-rw-r--r--
CMakeTestJavaCompiler.cmake
484
B
-rw-r--r--
CMakeTestOBJCCompiler.cmake
3.79
KB
-rw-r--r--
CMakeTestOBJCXXCompiler.cmake
3.82
KB
-rw-r--r--
CMakeTestRCCompiler.cmake
573
B
-rw-r--r--
CMakeTestSwiftCompiler.cmake
2.83
KB
-rw-r--r--
CMakeUnixFindMake.cmake
575
B
-rw-r--r--
CMakeVerifyManifest.cmake
3.88
KB
-rw-r--r--
CPack.cmake
32.48
KB
-rw-r--r--
CPackComponent.cmake
20.5
KB
-rw-r--r--
CPackIFW.cmake
24.54
KB
-rw-r--r--
CPackIFWConfigureFile.cmake
2.19
KB
-rw-r--r--
CSharpUtilities.cmake
10.7
KB
-rw-r--r--
CTest.cmake
8.85
KB
-rw-r--r--
CTestCoverageCollectGCOV.cmake
9.53
KB
-rw-r--r--
CTestScriptMode.cmake
662
B
-rw-r--r--
CTestTargets.cmake
3.09
KB
-rw-r--r--
CTestUseLaunchers.cmake
2.89
KB
-rw-r--r--
CheckCCompilerFlag.cmake
2.11
KB
-rw-r--r--
CheckCSourceCompiles.cmake
5.6
KB
-rw-r--r--
CheckCSourceRuns.cmake
5.73
KB
-rw-r--r--
CheckCXXCompilerFlag.cmake
2.14
KB
-rw-r--r--
CheckCXXSourceCompiles.cmake
5.64
KB
-rw-r--r--
CheckCXXSourceRuns.cmake
5.76
KB
-rw-r--r--
CheckCXXSymbolExists.cmake
3.03
KB
-rw-r--r--
CheckForPthreads.c
273
B
-rw-r--r--
CheckFortranCompilerFlag.cmake
2.58
KB
-rw-r--r--
CheckFortranFunctionExists.cma...
2.88
KB
-rw-r--r--
CheckFortranSourceCompiles.cma...
6.54
KB
-rw-r--r--
CheckFortranSourceRuns.cmake
6.87
KB
-rw-r--r--
CheckFunctionExists.c
433
B
-rw-r--r--
CheckFunctionExists.cmake
4.36
KB
-rw-r--r--
CheckIPOSupported.cmake
6.59
KB
-rw-r--r--
CheckIncludeFile.c.in
130
B
-rw-r--r--
CheckIncludeFile.cmake
4.79
KB
-rw-r--r--
CheckIncludeFile.cxx.in
65
B
-rw-r--r--
CheckIncludeFileCXX.cmake
4.83
KB
-rw-r--r--
CheckIncludeFiles.cmake
6.38
KB
-rw-r--r--
CheckLanguage.cmake
3.9
KB
-rw-r--r--
CheckLibraryExists.cmake
3.53
KB
-rw-r--r--
CheckLibraryExists.lists.in
298
B
-rw-r--r--
CheckOBJCCompilerFlag.cmake
2.64
KB
-rw-r--r--
CheckOBJCSourceCompiles.cmake
5.68
KB
-rw-r--r--
CheckOBJCSourceRuns.cmake
5.82
KB
-rw-r--r--
CheckOBJCXXCompilerFlag.cmake
2.7
KB
-rw-r--r--
CheckOBJCXXSourceCompiles.cmak...
5.73
KB
-rw-r--r--
CheckOBJCXXSourceRuns.cmake
5.84
KB
-rw-r--r--
CheckPIESupported.cmake
4.42
KB
-rw-r--r--
CheckPrototypeDefinition.c.in
514
B
-rw-r--r--
CheckPrototypeDefinition.cmake
4.39
KB
-rw-r--r--
CheckSizeOf.cmake
348
B
-rw-r--r--
CheckStructHasMember.cmake
2.43
KB
-rw-r--r--
CheckSymbolExists.cmake
5.92
KB
-rw-r--r--
CheckTypeSize.c.in
1.07
KB
-rw-r--r--
CheckTypeSize.cmake
9.4
KB
-rw-r--r--
CheckTypeSizeMap.cmake.in
31
B
-rw-r--r--
CheckVariableExists.c
382
B
-rw-r--r--
CheckVariableExists.cmake
2.84
KB
-rw-r--r--
Dart.cmake
3.74
KB
-rw-r--r--
DartConfiguration.tcl.in
3.15
KB
-rw-r--r--
DeployQt4.cmake
12.63
KB
-rw-r--r--
Documentation.cmake
1.15
KB
-rw-r--r--
DummyCXXFile.cxx
27
B
-rw-r--r--
ExternalData.cmake
42.25
KB
-rw-r--r--
ExternalData_config.cmake.in
355
B
-rw-r--r--
ExternalProject-download.cmake...
3.65
KB
-rw-r--r--
ExternalProject-verify.cmake.i...
904
B
-rw-r--r--
ExternalProject.cmake
121.6
KB
-rw-r--r--
FLTKCompatibility.cmake
170
B
-rw-r--r--
FeatureSummary.cmake
27.75
KB
-rw-r--r--
FetchContent.cmake
42.83
KB
-rw-r--r--
FindALSA.cmake
2.15
KB
-rw-r--r--
FindASPELL.cmake
1.02
KB
-rw-r--r--
FindAVIFile.cmake
1.35
KB
-rw-r--r--
FindArmadillo.cmake
3.46
KB
-rw-r--r--
FindBISON.cmake
10.52
KB
-rw-r--r--
FindBLAS.cmake
26.25
KB
-rw-r--r--
FindBZip2.cmake
3.43
KB
-rw-r--r--
FindBacktrace.cmake
3.44
KB
-rw-r--r--
FindBoost.cmake
110.25
KB
-rw-r--r--
FindBullet.cmake
2.75
KB
-rw-r--r--
FindCABLE.cmake
2.54
KB
-rw-r--r--
FindCUDA.cmake
85.08
KB
-rw-r--r--
FindCUDAToolkit.cmake
27.96
KB
-rw-r--r--
FindCURL.cmake
6.97
KB
-rw-r--r--
FindCVS.cmake
1.94
KB
-rw-r--r--
FindCoin3D.cmake
2.25
KB
-rw-r--r--
FindCups.cmake
3.35
KB
-rw-r--r--
FindCurses.cmake
9
KB
-rw-r--r--
FindCxxTest.cmake
7.57
KB
-rw-r--r--
FindCygwin.cmake
870
B
-rw-r--r--
FindDCMTK.cmake
10.25
KB
-rw-r--r--
FindDart.cmake
949
B
-rw-r--r--
FindDevIL.cmake
2.56
KB
-rw-r--r--
FindDoxygen.cmake
40.69
KB
-rw-r--r--
FindEXPAT.cmake
2.63
KB
-rw-r--r--
FindEnvModules.cmake
9.71
KB
-rw-r--r--
FindFLEX.cmake
8.29
KB
-rw-r--r--
FindFLTK.cmake
10.57
KB
-rw-r--r--
FindFLTK2.cmake
7.5
KB
-rw-r--r--
FindFontconfig.cmake
2.87
KB
-rw-r--r--
FindFreetype.cmake
5.89
KB
-rw-r--r--
FindGCCXML.cmake
672
B
-rw-r--r--
FindGDAL.cmake
5.24
KB
-rw-r--r--
FindGIF.cmake
3.77
KB
-rw-r--r--
FindGLEW.cmake
10.63
KB
-rw-r--r--
FindGLU.cmake
554
B
-rw-r--r--
FindGLUT.cmake
5.68
KB
-rw-r--r--
FindGSL.cmake
8.84
KB
-rw-r--r--
FindGTK.cmake
3.79
KB
-rw-r--r--
FindGTK2.cmake
36.02
KB
-rw-r--r--
FindGTest.cmake
8.24
KB
-rw-r--r--
FindGettext.cmake
7.8
KB
-rw-r--r--
FindGit.cmake
2.92
KB
-rw-r--r--
FindGnuTLS.cmake
2.42
KB
-rw-r--r--
FindGnuplot.cmake
1.57
KB
-rw-r--r--
FindHDF5.cmake
38.26
KB
-rw-r--r--
FindHSPELL.cmake
1.64
KB
-rw-r--r--
FindHTMLHelp.cmake
1.43
KB
-rw-r--r--
FindHg.cmake
2.98
KB
-rw-r--r--
FindICU.cmake
15.04
KB
-rw-r--r--
FindIce.cmake
23.45
KB
-rw-r--r--
FindIconv.cmake
4.28
KB
-rw-r--r--
FindIcotool.cmake
1.3
KB
-rw-r--r--
FindImageMagick.cmake
11.5
KB
-rw-r--r--
FindIntl.cmake
1.94
KB
-rw-r--r--
FindJNI.cmake
13.21
KB
-rw-r--r--
FindJPEG.cmake
4.06
KB
-rw-r--r--
FindJasper.cmake
1.67
KB
-rw-r--r--
FindJava.cmake
12.47
KB
-rw-r--r--
FindKDE3.cmake
9.91
KB
-rw-r--r--
FindKDE4.cmake
3.12
KB
-rw-r--r--
FindLAPACK.cmake
14.59
KB
-rw-r--r--
FindLATEX.cmake
6.18
KB
-rw-r--r--
FindLTTngUST.cmake
3.57
KB
-rw-r--r--
FindLibArchive.cmake
2.79
KB
-rw-r--r--
FindLibLZMA.cmake
5.19
KB
-rw-r--r--
FindLibXml2.cmake
4.1
KB
-rw-r--r--
FindLibXslt.cmake
2.59
KB
-rw-r--r--
FindLibinput.cmake
2.1
KB
-rw-r--r--
FindLua.cmake
8.2
KB
-rw-r--r--
FindLua50.cmake
2.34
KB
-rw-r--r--
FindLua51.cmake
2.23
KB
-rw-r--r--
FindMFC.cmake
2.43
KB
-rw-r--r--
FindMPEG.cmake
1.21
KB
-rw-r--r--
FindMPEG2.cmake
1.39
KB
-rw-r--r--
FindMPI.cmake
86.65
KB
-rw-r--r--
FindMatlab.cmake
61.9
KB
-rw-r--r--
FindMotif.cmake
917
B
-rw-r--r--
FindODBC.cmake
6.98
KB
-rw-r--r--
FindOpenACC.cmake
9.71
KB
-rw-r--r--
FindOpenAL.cmake
3.55
KB
-rw-r--r--
FindOpenCL.cmake
4.64
KB
-rw-r--r--
FindOpenGL.cmake
19.66
KB
-rw-r--r--
FindOpenMP.cmake
24.9
KB
-rw-r--r--
FindOpenSSL.cmake
17.09
KB
-rw-r--r--
FindOpenSceneGraph.cmake
7.23
KB
-rw-r--r--
FindOpenThreads.cmake
3.41
KB
-rw-r--r--
FindPHP4.cmake
2.11
KB
-rw-r--r--
FindPNG.cmake
5.71
KB
-rw-r--r--
FindPackageHandleStandardArgs....
17.37
KB
-rw-r--r--
FindPackageMessage.cmake
1.67
KB
-rw-r--r--
FindPatch.cmake
1.74
KB
-rw-r--r--
FindPerl.cmake
2.5
KB
-rw-r--r--
FindPerlLibs.cmake
5.03
KB
-rw-r--r--
FindPhysFS.cmake
1.12
KB
-rw-r--r--
FindPike.cmake
922
B
-rw-r--r--
FindPkgConfig.cmake
29.64
KB
-rw-r--r--
FindPostgreSQL.cmake
11.53
KB
-rw-r--r--
FindProducer.cmake
2.24
KB
-rw-r--r--
FindProtobuf.cmake
22.82
KB
-rw-r--r--
FindPython.cmake
12.65
KB
-rw-r--r--
FindPython2.cmake
8.98
KB
-rw-r--r--
FindPython3.cmake
10.82
KB
-rw-r--r--
FindPythonInterp.cmake
7.15
KB
-rw-r--r--
FindPythonLibs.cmake
15.84
KB
-rw-r--r--
FindQt.cmake
6.32
KB
-rw-r--r--
FindQt3.cmake
9.1
KB
-rw-r--r--
FindQt4.cmake
52.14
KB
-rw-r--r--
FindQuickTime.cmake
1011
B
-rw-r--r--
FindRTI.cmake
3.22
KB
-rw-r--r--
FindRuby.cmake
10.88
KB
-rw-r--r--
FindRuby.cmake.findruby
11.09
KB
-rw-r--r--
FindSDL.cmake
7.12
KB
-rw-r--r--
FindSDL_image.cmake
3.81
KB
-rw-r--r--
FindSDL_mixer.cmake
3.81
KB
-rw-r--r--
FindSDL_net.cmake
3.63
KB
-rw-r--r--
FindSDL_sound.cmake
12.33
KB
-rw-r--r--
FindSDL_ttf.cmake
3.63
KB
-rw-r--r--
FindSQLite3.cmake
1.97
KB
-rw-r--r--
FindSWIG.cmake
2.58
KB
-rw-r--r--
FindSelfPackers.cmake
1.48
KB
-rw-r--r--
FindSquish.cmake
9.64
KB
-rw-r--r--
FindSubversion.cmake
6.21
KB
-rw-r--r--
FindTCL.cmake
7.74
KB
-rw-r--r--
FindTIFF.cmake
3.35
KB
-rw-r--r--
FindTclStub.cmake
4.46
KB
-rw-r--r--
FindTclsh.cmake
3.36
KB
-rw-r--r--
FindThreads.cmake
7.88
KB
-rw-r--r--
FindUnixCommands.cmake
1.26
KB
-rw-r--r--
FindVulkan.cmake
2.2
KB
-rw-r--r--
FindWget.cmake
887
B
-rw-r--r--
FindWish.cmake
2.72
KB
-rw-r--r--
FindX11.cmake
27.99
KB
-rw-r--r--
FindXCTest.cmake
6.78
KB
-rw-r--r--
FindXMLRPC.cmake
3.98
KB
-rw-r--r--
FindXalanC.cmake
5.83
KB
-rw-r--r--
FindXercesC.cmake
5.27
KB
-rw-r--r--
FindZLIB.cmake
4.84
KB
-rw-r--r--
Findosg.cmake
1.88
KB
-rw-r--r--
FindosgAnimation.cmake
1.87
KB
-rw-r--r--
FindosgDB.cmake
1.77
KB
-rw-r--r--
FindosgFX.cmake
1.76
KB
-rw-r--r--
FindosgGA.cmake
1.77
KB
-rw-r--r--
FindosgIntrospection.cmake
1.96
KB
-rw-r--r--
FindosgManipulator.cmake
1.93
KB
-rw-r--r--
FindosgParticle.cmake
1.86
KB
-rw-r--r--
FindosgPresentation.cmake
2.02
KB
-rw-r--r--
FindosgProducer.cmake
1.87
KB
-rw-r--r--
FindosgQt.cmake
1.82
KB
-rw-r--r--
FindosgShadow.cmake
1.83
KB
-rw-r--r--
FindosgSim.cmake
1.77
KB
-rw-r--r--
FindosgTerrain.cmake
1.84
KB
-rw-r--r--
FindosgText.cmake
1.77
KB
-rw-r--r--
FindosgUtil.cmake
1.78
KB
-rw-r--r--
FindosgViewer.cmake
1.82
KB
-rw-r--r--
FindosgVolume.cmake
1.82
KB
-rw-r--r--
FindosgWidget.cmake
1.87
KB
-rw-r--r--
Findosg_functions.cmake
2.08
KB
-rw-r--r--
FindwxWidgets.cmake
42.47
KB
-rw-r--r--
FindwxWindows.cmake
23.82
KB
-rw-r--r--
FortranCInterface.cmake
13.84
KB
-rw-r--r--
GNUInstallDirs.cmake
14.46
KB
-rw-r--r--
GenerateExportHeader.cmake
14.9
KB
-rw-r--r--
GetPrerequisites.cmake
33.23
KB
-rw-r--r--
GoogleTest.cmake
17.76
KB
-rw-r--r--
GoogleTestAddTests.cmake
3.3
KB
-rw-r--r--
ITKCompatibility.cmake
224
B
-rw-r--r--
InstallRequiredSystemLibraries...
29.32
KB
-rw-r--r--
KDE3Macros.cmake
12.39
KB
-rw-r--r--
MacOSXBundleInfo.plist.in
1.19
KB
-rw-r--r--
MacOSXFrameworkInfo.plist.in
886
B
-rw-r--r--
MacroAddFileDependencies.cmake
1.02
KB
-rw-r--r--
MatlabTestsRedirect.cmake
3.39
KB
-rw-r--r--
ProcessorCount.cmake
8.44
KB
-rw-r--r--
Qt4ConfigDependentSettings.cma...
7.61
KB
-rw-r--r--
Qt4Macros.cmake
18.79
KB
-rw-r--r--
RepositoryInfo.txt.in
56
B
-rw-r--r--
SelectLibraryConfigurations.cm...
3.21
KB
-rw-r--r--
Squish4RunTestCase.bat
653
B
-rw-r--r--
Squish4RunTestCase.sh
775
B
-rw-r--r--
SquishRunTestCase.bat
219
B
-rw-r--r--
SquishRunTestCase.sh
272
B
-rw-r--r--
SquishTestScript.cmake
3.52
KB
-rw-r--r--
SystemInformation.cmake
3.12
KB
-rw-r--r--
SystemInformation.in
4.59
KB
-rw-r--r--
TestBigEndian.cmake
4.57
KB
-rw-r--r--
TestCXXAcceptsFlag.cmake
1.43
KB
-rw-r--r--
TestEndianess.c.in
871
B
-rw-r--r--
TestForANSIForScope.cmake
1.45
KB
-rw-r--r--
TestForANSIStreamHeaders.cmake
1.04
KB
-rw-r--r--
TestForANSIStreamHeaders.cxx
61
B
-rw-r--r--
TestForAnsiForScope.cxx
96
B
-rw-r--r--
TestForSSTREAM.cmake
1.4
KB
-rw-r--r--
TestForSSTREAM.cxx
150
B
-rw-r--r--
TestForSTDNamespace.cmake
1.37
KB
-rw-r--r--
TestForSTDNamespace.cxx
76
B
-rw-r--r--
UseEcos.cmake
9.71
KB
-rw-r--r--
UseJava.cmake
50.68
KB
-rw-r--r--
UseJavaClassFilelist.cmake
1.85
KB
-rw-r--r--
UseJavaSymlinks.cmake
817
B
-rw-r--r--
UsePkgConfig.cmake
2.65
KB
-rw-r--r--
UseQt4.cmake
3.62
KB
-rw-r--r--
UseSWIG.cmake
33.81
KB
-rw-r--r--
Use_wxWindows.cmake
2.1
KB
-rw-r--r--
UsewxWidgets.cmake
3.03
KB
-rw-r--r--
VTKCompatibility.cmake
1.67
KB
-rw-r--r--
WriteBasicConfigVersionFile.cm...
1.65
KB
-rw-r--r--
WriteCompilerDetectionHeader.c...
26.17
KB
-rw-r--r--
ecos_clean.cmake
492
B
-rw-r--r--
exportheader.cmake.in
1.08
KB
-rw-r--r--
javaTargets.cmake.in
1.2
KB
-rw-r--r--
kde3init_dummy.cpp.in
227
B
-rw-r--r--
kde3uic.cmake
723
B
-rw-r--r--
readme.txt
231
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FindPkgConfig.cmake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. #[========================================[.rst: FindPkgConfig ------------- A ``pkg-config`` module for CMake. Finds the ``pkg-config`` executable and adds the :command:`pkg_get_variable`, :command:`pkg_check_modules` and :command:`pkg_search_module` commands. The following variables will also be set: ``PKG_CONFIG_FOUND`` if pkg-config executable was found ``PKG_CONFIG_EXECUTABLE`` pathname of the pkg-config program ``PKG_CONFIG_VERSION_STRING`` version of pkg-config (since CMake 2.8.8) #]========================================] cmake_policy(PUSH) cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced cmake_policy(SET CMP0057 NEW) # if IN_LIST ### Common stuff #### set(PKG_CONFIG_VERSION 1) # find pkg-config, use PKG_CONFIG if set if((NOT PKG_CONFIG_EXECUTABLE) AND (NOT "$ENV{PKG_CONFIG}" STREQUAL "")) set(PKG_CONFIG_EXECUTABLE "$ENV{PKG_CONFIG}" CACHE FILEPATH "pkg-config executable") endif() find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable") mark_as_advanced(PKG_CONFIG_EXECUTABLE) if (PKG_CONFIG_EXECUTABLE) execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PKG_CONFIG_VERSION_STRING ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) endif () include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) find_package_handle_standard_args(PkgConfig REQUIRED_VARS PKG_CONFIG_EXECUTABLE VERSION_VAR PKG_CONFIG_VERSION_STRING) # This is needed because the module name is "PkgConfig" but the name of # this variable has always been PKG_CONFIG_FOUND so this isn't automatically # handled by FPHSA. set(PKG_CONFIG_FOUND "${PKGCONFIG_FOUND}") # Unsets the given variables macro(_pkgconfig_unset var) set(${var} "" CACHE INTERNAL "") endmacro() macro(_pkgconfig_set var value) set(${var} ${value} CACHE INTERNAL "") endmacro() # Invokes pkgconfig, cleans up the result and sets variables macro(_pkgconfig_invoke _pkglist _prefix _varname _regexp) set(_pkgconfig_invoke_result) execute_process( COMMAND ${PKG_CONFIG_EXECUTABLE} ${ARGN} ${_pkglist} OUTPUT_VARIABLE _pkgconfig_invoke_result RESULT_VARIABLE _pkgconfig_failed OUTPUT_STRIP_TRAILING_WHITESPACE) if (_pkgconfig_failed) set(_pkgconfig_${_varname} "") _pkgconfig_unset(${_prefix}_${_varname}) else() string(REGEX REPLACE "[\r\n]" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}") if (NOT ${_regexp} STREQUAL "") string(REGEX REPLACE "${_regexp}" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}") endif() separate_arguments(_pkgconfig_invoke_result) #message(STATUS " ${_varname} ... ${_pkgconfig_invoke_result}") set(_pkgconfig_${_varname} ${_pkgconfig_invoke_result}) _pkgconfig_set(${_prefix}_${_varname} "${_pkgconfig_invoke_result}") endif() endmacro() # Internal version of pkg_get_variable; expects PKG_CONFIG_PATH to already be set function (_pkg_get_variable result pkg variable) _pkgconfig_invoke("${pkg}" "prefix" "result" "" "--variable=${variable}") set("${result}" "${prefix_result}" PARENT_SCOPE) endfunction () # Invokes pkgconfig two times; once without '--static' and once with # '--static' macro(_pkgconfig_invoke_dyn _pkglist _prefix _varname cleanup_regexp) _pkgconfig_invoke("${_pkglist}" ${_prefix} ${_varname} "${cleanup_regexp}" ${ARGN}) _pkgconfig_invoke("${_pkglist}" ${_prefix} STATIC_${_varname} "${cleanup_regexp}" --static ${ARGN}) endmacro() # Splits given arguments into options and a package list macro(_pkgconfig_parse_options _result _is_req _is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global) set(${_is_req} 0) set(${_is_silent} 0) set(${_no_cmake_path} 0) set(${_no_cmake_environment_path} 0) set(${_imp_target} 0) set(${_imp_target_global} 0) if(DEFINED PKG_CONFIG_USE_CMAKE_PREFIX_PATH) if(NOT PKG_CONFIG_USE_CMAKE_PREFIX_PATH) set(${_no_cmake_path} 1) set(${_no_cmake_environment_path} 1) endif() elseif(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.1) set(${_no_cmake_path} 1) set(${_no_cmake_environment_path} 1) endif() foreach(_pkg ${ARGN}) if (_pkg STREQUAL "REQUIRED") set(${_is_req} 1) endif () if (_pkg STREQUAL "QUIET") set(${_is_silent} 1) endif () if (_pkg STREQUAL "NO_CMAKE_PATH") set(${_no_cmake_path} 1) endif() if (_pkg STREQUAL "NO_CMAKE_ENVIRONMENT_PATH") set(${_no_cmake_environment_path} 1) endif() if (_pkg STREQUAL "IMPORTED_TARGET") set(${_imp_target} 1) endif() if (_pkg STREQUAL "GLOBAL") set(${_imp_target_global} 1) endif() endforeach() if (${_imp_target_global} AND NOT ${_imp_target}) message(SEND_ERROR "the argument GLOBAL may only be used together with IMPORTED_TARGET") endif() set(${_result} ${ARGN}) list(REMOVE_ITEM ${_result} "REQUIRED") list(REMOVE_ITEM ${_result} "QUIET") list(REMOVE_ITEM ${_result} "NO_CMAKE_PATH") list(REMOVE_ITEM ${_result} "NO_CMAKE_ENVIRONMENT_PATH") list(REMOVE_ITEM ${_result} "IMPORTED_TARGET") list(REMOVE_ITEM ${_result} "GLOBAL") endmacro() # Add the content of a variable or an environment variable to a list of # paths # Usage: # - _pkgconfig_add_extra_path(_extra_paths VAR) # - _pkgconfig_add_extra_path(_extra_paths ENV VAR) function(_pkgconfig_add_extra_path _extra_paths_var _var) set(_is_env 0) if(ARGC GREATER 2 AND _var STREQUAL "ENV") set(_var ${ARGV2}) set(_is_env 1) endif() if(NOT _is_env) if(NOT "${${_var}}" STREQUAL "") list(APPEND ${_extra_paths_var} ${${_var}}) endif() else() if(NOT "$ENV{${_var}}" STREQUAL "") file(TO_CMAKE_PATH "$ENV{${_var}}" _path) list(APPEND ${_extra_paths_var} ${_path}) unset(_path) endif() endif() set(${_extra_paths_var} ${${_extra_paths_var}} PARENT_SCOPE) endfunction() # scan the LDFLAGS returned by pkg-config for library directories and # libraries, figure out the absolute paths of that libraries in the # given directories function(_pkg_find_libs _prefix _no_cmake_path _no_cmake_environment_path) unset(_libs) unset(_find_opts) # set the options that are used as long as the .pc file does not provide a library # path to look into if(_no_cmake_path) list(APPEND _find_opts "NO_CMAKE_PATH") endif() if(_no_cmake_environment_path) list(APPEND _find_opts "NO_CMAKE_ENVIRONMENT_PATH") endif() unset(_search_paths) foreach (flag IN LISTS ${_prefix}_LDFLAGS) if (flag MATCHES "^-L(.*)") list(APPEND _search_paths ${CMAKE_MATCH_1}) continue() endif() if (flag MATCHES "^-l(.*)") set(_pkg_search "${CMAKE_MATCH_1}") else() continue() endif() if(_search_paths) # Firstly search in -L paths find_library(pkgcfg_lib_${_prefix}_${_pkg_search} NAMES ${_pkg_search} HINTS ${_search_paths} NO_DEFAULT_PATH) endif() find_library(pkgcfg_lib_${_prefix}_${_pkg_search} NAMES ${_pkg_search} ${_find_opts}) mark_as_advanced(pkgcfg_lib_${_prefix}_${_pkg_search}) if(pkgcfg_lib_${_prefix}_${_pkg_search}) list(APPEND _libs "${pkgcfg_lib_${_prefix}_${_pkg_search}}") else() list(APPEND _libs ${_pkg_search}) endif() endforeach() set(${_prefix}_LINK_LIBRARIES "${_libs}" PARENT_SCOPE) endfunction() # create an imported target from all the information returned by pkg-config function(_pkg_create_imp_target _prefix _imp_target_global) # only create the target if it is linkable, i.e. no executables if (NOT TARGET PkgConfig::${_prefix} AND ( ${_prefix}_INCLUDE_DIRS OR ${_prefix}_LINK_LIBRARIES OR ${_prefix}_LDFLAGS_OTHER OR ${_prefix}_CFLAGS_OTHER )) if(${_imp_target_global}) set(_global_opt "GLOBAL") else() unset(_global_opt) endif() add_library(PkgConfig::${_prefix} INTERFACE IMPORTED ${_global_opt}) if(${_prefix}_INCLUDE_DIRS) set_property(TARGET PkgConfig::${_prefix} PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${${_prefix}_INCLUDE_DIRS}") endif() if(${_prefix}_LINK_LIBRARIES) set_property(TARGET PkgConfig::${_prefix} PROPERTY INTERFACE_LINK_LIBRARIES "${${_prefix}_LINK_LIBRARIES}") endif() if(${_prefix}_LDFLAGS_OTHER) set_property(TARGET PkgConfig::${_prefix} PROPERTY INTERFACE_LINK_OPTIONS "${${_prefix}_LDFLAGS_OTHER}") endif() if(${_prefix}_CFLAGS_OTHER) set_property(TARGET PkgConfig::${_prefix} PROPERTY INTERFACE_COMPILE_OPTIONS "${${_prefix}_CFLAGS_OTHER}") endif() endif() endfunction() # recalculate the dynamic output # this is a macro and not a function so the result of _pkg_find_libs is automatically propagated macro(_pkg_recalculate _prefix _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global) _pkg_find_libs(${_prefix} ${_no_cmake_path} ${_no_cmake_environment_path}) if(${_imp_target}) _pkg_create_imp_target(${_prefix} ${_imp_target_global}) endif() endmacro() ### macro(_pkg_set_path_internal) set(_extra_paths) if(NOT _no_cmake_path) _pkgconfig_add_extra_path(_extra_paths CMAKE_PREFIX_PATH) _pkgconfig_add_extra_path(_extra_paths CMAKE_FRAMEWORK_PATH) _pkgconfig_add_extra_path(_extra_paths CMAKE_APPBUNDLE_PATH) endif() if(NOT _no_cmake_environment_path) _pkgconfig_add_extra_path(_extra_paths ENV CMAKE_PREFIX_PATH) _pkgconfig_add_extra_path(_extra_paths ENV CMAKE_FRAMEWORK_PATH) _pkgconfig_add_extra_path(_extra_paths ENV CMAKE_APPBUNDLE_PATH) endif() if(NOT _extra_paths STREQUAL "") # Save the PKG_CONFIG_PATH environment variable, and add paths # from the CMAKE_PREFIX_PATH variables set(_pkgconfig_path_old "$ENV{PKG_CONFIG_PATH}") set(_pkgconfig_path "${_pkgconfig_path_old}") if(NOT _pkgconfig_path STREQUAL "") file(TO_CMAKE_PATH "${_pkgconfig_path}" _pkgconfig_path) endif() # Create a list of the possible pkgconfig subfolder (depending on # the system set(_lib_dirs) if(NOT DEFINED CMAKE_SYSTEM_NAME OR (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)) if(EXISTS "/etc/debian_version") # is this a debian system ? if(CMAKE_LIBRARY_ARCHITECTURE) list(APPEND _lib_dirs "lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig") endif() else() # not debian, check the FIND_LIBRARY_USE_LIB32_PATHS and FIND_LIBRARY_USE_LIB64_PATHS properties get_property(uselib32 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS) if(uselib32 AND CMAKE_SIZEOF_VOID_P EQUAL 4) list(APPEND _lib_dirs "lib32/pkgconfig") endif() get_property(uselib64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS) if(uselib64 AND CMAKE_SIZEOF_VOID_P EQUAL 8) list(APPEND _lib_dirs "lib64/pkgconfig") endif() get_property(uselibx32 GLOBAL PROPERTY FIND_LIBRARY_USE_LIBX32_PATHS) if(uselibx32 AND CMAKE_INTERNAL_PLATFORM_ABI STREQUAL "ELF X32") list(APPEND _lib_dirs "libx32/pkgconfig") endif() endif() endif() if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT CMAKE_CROSSCOMPILING) list(APPEND _lib_dirs "libdata/pkgconfig") endif() list(APPEND _lib_dirs "lib/pkgconfig") list(APPEND _lib_dirs "share/pkgconfig") # Check if directories exist and eventually append them to the # pkgconfig path list foreach(_prefix_dir ${_extra_paths}) foreach(_lib_dir ${_lib_dirs}) if(EXISTS "${_prefix_dir}/${_lib_dir}") list(APPEND _pkgconfig_path "${_prefix_dir}/${_lib_dir}") list(REMOVE_DUPLICATES _pkgconfig_path) endif() endforeach() endforeach() # Prepare and set the environment variable if(NOT _pkgconfig_path STREQUAL "") # remove empty values from the list list(REMOVE_ITEM _pkgconfig_path "") file(TO_NATIVE_PATH "${_pkgconfig_path}" _pkgconfig_path) if(CMAKE_HOST_UNIX) string(REPLACE ";" ":" _pkgconfig_path "${_pkgconfig_path}") string(REPLACE "\\ " " " _pkgconfig_path "${_pkgconfig_path}") endif() set(ENV{PKG_CONFIG_PATH} "${_pkgconfig_path}") endif() # Unset variables unset(_lib_dirs) unset(_pkgconfig_path) endif() endmacro() macro(_pkg_restore_path_internal) if(NOT _extra_paths STREQUAL "") # Restore the environment variable set(ENV{PKG_CONFIG_PATH} "${_pkgconfig_path_old}") endif() unset(_extra_paths) unset(_pkgconfig_path_old) endmacro() # pkg-config returns -isystem include directories in --cflags-only-other, # depending on the version and if there is a space between -isystem and # the actual path function(_pkgconfig_extract_isystem _prefix) set(cflags "${${_prefix}_CFLAGS_OTHER}") set(outflags "") set(incdirs "${${_prefix}_INCLUDE_DIRS}") set(next_is_isystem FALSE) foreach (THING IN LISTS cflags) # This may filter "-isystem -isystem". That would not work anyway, # so let it happen. if (THING STREQUAL "-isystem") set(next_is_isystem TRUE) continue() endif () if (next_is_isystem) set(next_is_isystem FALSE) list(APPEND incdirs "${THING}") elseif (THING MATCHES "^-isystem") string(SUBSTRING "${THING}" 8 -1 THING) list(APPEND incdirs "${THING}") else () list(APPEND outflags "${THING}") endif () endforeach () set(${_prefix}_CFLAGS_OTHER "${outflags}" PARENT_SCOPE) set(${_prefix}_INCLUDE_DIRS "${incdirs}" PARENT_SCOPE) endfunction() ### macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global _prefix) _pkgconfig_unset(${_prefix}_FOUND) _pkgconfig_unset(${_prefix}_VERSION) _pkgconfig_unset(${_prefix}_PREFIX) _pkgconfig_unset(${_prefix}_INCLUDEDIR) _pkgconfig_unset(${_prefix}_LIBDIR) _pkgconfig_unset(${_prefix}_MODULE_NAME) _pkgconfig_unset(${_prefix}_LIBS) _pkgconfig_unset(${_prefix}_LIBS_L) _pkgconfig_unset(${_prefix}_LIBS_PATHS) _pkgconfig_unset(${_prefix}_LIBS_OTHER) _pkgconfig_unset(${_prefix}_CFLAGS) _pkgconfig_unset(${_prefix}_CFLAGS_I) _pkgconfig_unset(${_prefix}_CFLAGS_OTHER) _pkgconfig_unset(${_prefix}_STATIC_LIBDIR) _pkgconfig_unset(${_prefix}_STATIC_LIBS) _pkgconfig_unset(${_prefix}_STATIC_LIBS_L) _pkgconfig_unset(${_prefix}_STATIC_LIBS_PATHS) _pkgconfig_unset(${_prefix}_STATIC_LIBS_OTHER) _pkgconfig_unset(${_prefix}_STATIC_CFLAGS) _pkgconfig_unset(${_prefix}_STATIC_CFLAGS_I) _pkgconfig_unset(${_prefix}_STATIC_CFLAGS_OTHER) # create a better addressable variable of the modules and calculate its size set(_pkg_check_modules_list ${ARGN}) list(LENGTH _pkg_check_modules_list _pkg_check_modules_cnt) if(PKG_CONFIG_EXECUTABLE) # give out status message telling checked module if (NOT ${_is_silent}) if (_pkg_check_modules_cnt EQUAL 1) message(STATUS "Checking for module '${_pkg_check_modules_list}'") else() message(STATUS "Checking for modules '${_pkg_check_modules_list}'") endif() endif() set(_pkg_check_modules_packages) set(_pkg_check_modules_failed) _pkg_set_path_internal() # iterate through module list and check whether they exist and match the required version foreach (_pkg_check_modules_pkg ${_pkg_check_modules_list}) set(_pkg_check_modules_exist_query) # check whether version is given if (_pkg_check_modules_pkg MATCHES "(.*[^><])(=|[><]=?)(.*)") set(_pkg_check_modules_pkg_name "${CMAKE_MATCH_1}") set(_pkg_check_modules_pkg_op "${CMAKE_MATCH_2}") set(_pkg_check_modules_pkg_ver "${CMAKE_MATCH_3}") else() set(_pkg_check_modules_pkg_name "${_pkg_check_modules_pkg}") set(_pkg_check_modules_pkg_op) set(_pkg_check_modules_pkg_ver) endif() _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_VERSION) _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_PREFIX) _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_INCLUDEDIR) _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_LIBDIR) list(APPEND _pkg_check_modules_packages "${_pkg_check_modules_pkg_name}") # create the final query which is of the format: # * <pkg-name> > <version> # * <pkg-name> >= <version> # * <pkg-name> = <version> # * <pkg-name> <= <version> # * <pkg-name> < <version> # * --exists <pkg-name> list(APPEND _pkg_check_modules_exist_query --print-errors --short-errors) if (_pkg_check_modules_pkg_op) list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name} ${_pkg_check_modules_pkg_op} ${_pkg_check_modules_pkg_ver}") else() list(APPEND _pkg_check_modules_exist_query --exists) list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name}") endif() # execute the query execute_process( COMMAND ${PKG_CONFIG_EXECUTABLE} ${_pkg_check_modules_exist_query} RESULT_VARIABLE _pkgconfig_retval ERROR_VARIABLE _pkgconfig_error ERROR_STRIP_TRAILING_WHITESPACE) # evaluate result and tell failures if (_pkgconfig_retval) if(NOT ${_is_silent}) message(STATUS " ${_pkgconfig_error}") endif() set(_pkg_check_modules_failed 1) endif() endforeach() if(_pkg_check_modules_failed) # fail when requested if (${_is_required}) message(FATAL_ERROR "A required package was not found") endif () else() # when we are here, we checked whether requested modules # exist. Now, go through them and set variables _pkgconfig_set(${_prefix}_FOUND 1) list(LENGTH _pkg_check_modules_packages pkg_count) # iterate through all modules again and set individual variables foreach (_pkg_check_modules_pkg ${_pkg_check_modules_packages}) # handle case when there is only one package required if (pkg_count EQUAL 1) set(_pkg_check_prefix "${_prefix}") else() set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}") endif() _pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION "" --modversion ) pkg_get_variable("${_pkg_check_prefix}_PREFIX" ${_pkg_check_modules_pkg} "prefix") pkg_get_variable("${_pkg_check_prefix}_INCLUDEDIR" ${_pkg_check_modules_pkg} "includedir") pkg_get_variable("${_pkg_check_prefix}_LIBDIR" ${_pkg_check_modules_pkg} "libdir") foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR) _pkgconfig_set("${_pkg_check_prefix}_${variable}" "${${_pkg_check_prefix}_${variable}}") endforeach () _pkgconfig_set("${_pkg_check_prefix}_MODULE_NAME" "${_pkg_check_modules_pkg}") if (NOT ${_is_silent}) message(STATUS " Found ${_pkg_check_modules_pkg}, version ${_pkgconfig_VERSION}") endif () endforeach() # set variables which are combined for multiple modules _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARIES "(^| )-l" --libs-only-l ) _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARY_DIRS "(^| )-L" --libs-only-L ) _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LDFLAGS "" --libs ) _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LDFLAGS_OTHER "" --libs-only-other ) _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" INCLUDE_DIRS "(^| )(-I|-isystem ?)" --cflags-only-I ) _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS "" --cflags ) _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS_OTHER "" --cflags-only-other ) if (${_prefix}_CFLAGS_OTHER MATCHES "-isystem") _pkgconfig_extract_isystem("${_prefix}") endif () _pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global}) endif() _pkg_restore_path_internal() else() if (${_is_required}) message(SEND_ERROR "pkg-config tool not found") endif () endif() endmacro() #[========================================[.rst: .. command:: pkg_check_modules Checks for all the given modules, setting a variety of result variables in the calling scope. .. code-block:: cmake pkg_check_modules(<prefix> [REQUIRED] [QUIET] [NO_CMAKE_PATH] [NO_CMAKE_ENVIRONMENT_PATH] [IMPORTED_TARGET [GLOBAL]] <moduleSpec> [<moduleSpec>...]) When the ``REQUIRED`` argument is given, the command will fail with an error if module(s) could not be found. When the ``QUIET`` argument is given, no status messages will be printed. By default, if :variable:`CMAKE_MINIMUM_REQUIRED_VERSION` is 3.1 or later, or if :variable:`PKG_CONFIG_USE_CMAKE_PREFIX_PATH` is set to a boolean ``True`` value, then the :variable:`CMAKE_PREFIX_PATH`, :variable:`CMAKE_FRAMEWORK_PATH`, and :variable:`CMAKE_APPBUNDLE_PATH` cache and environment variables will be added to the ``pkg-config`` search path. The ``NO_CMAKE_PATH`` and ``NO_CMAKE_ENVIRONMENT_PATH`` arguments disable this behavior for the cache variables and environment variables respectively. The ``IMPORTED_TARGET`` argument will create an imported target named ``PkgConfig::<prefix>`` that can be passed directly as an argument to :command:`target_link_libraries`. The ``GLOBAL`` argument will make the imported target available in global scope. Each ``<moduleSpec>`` can be either a bare module name or it can be a module name with a version constraint (operators ``=``, ``<``, ``>``, ``<=`` and ``>=`` are supported). The following are examples for a module named ``foo`` with various constraints: - ``foo`` matches any version. - ``foo<2`` only matches versions before 2. - ``foo>=3.1`` matches any version from 3.1 or later. - ``foo=1.2.3`` requires that foo must be exactly version 1.2.3. The following variables may be set upon return. Two sets of values exist: One for the common case (``<XXX> = <prefix>``) and another for the information ``pkg-config`` provides when called with the ``--static`` option (``<XXX> = <prefix>_STATIC``). ``<XXX>_FOUND`` set to 1 if module(s) exist ``<XXX>_LIBRARIES`` only the libraries (without the '-l') ``<XXX>_LINK_LIBRARIES`` the libraries and their absolute paths ``<XXX>_LIBRARY_DIRS`` the paths of the libraries (without the '-L') ``<XXX>_LDFLAGS`` all required linker flags ``<XXX>_LDFLAGS_OTHER`` all other linker flags ``<XXX>_INCLUDE_DIRS`` the '-I' preprocessor flags (without the '-I') ``<XXX>_CFLAGS`` all required cflags ``<XXX>_CFLAGS_OTHER`` the other compiler flags All but ``<XXX>_FOUND`` may be a :ref:`;-list <CMake Language Lists>` if the associated variable returned from ``pkg-config`` has multiple values. There are some special variables whose prefix depends on the number of ``<moduleSpec>`` given. When there is only one ``<moduleSpec>``, ``<YYY>`` will simply be ``<prefix>``, but if two or more ``<moduleSpec>`` items are given, ``<YYY>`` will be ``<prefix>_<moduleName>``. ``<YYY>_VERSION`` version of the module ``<YYY>_PREFIX`` prefix directory of the module ``<YYY>_INCLUDEDIR`` include directory of the module ``<YYY>_LIBDIR`` lib directory of the module Examples: .. code-block:: cmake pkg_check_modules (GLIB2 glib-2.0) Looks for any version of glib2. If found, the output variable ``GLIB2_VERSION`` will hold the actual version found. .. code-block:: cmake pkg_check_modules (GLIB2 glib-2.0>=2.10) Looks for at least version 2.10 of glib2. If found, the output variable ``GLIB2_VERSION`` will hold the actual version found. .. code-block:: cmake pkg_check_modules (FOO glib-2.0>=2.10 gtk+-2.0) Looks for both glib2-2.0 (at least version 2.10) and any version of gtk2+-2.0. Only if both are found will ``FOO`` be considered found. The ``FOO_glib-2.0_VERSION`` and ``FOO_gtk+-2.0_VERSION`` variables will be set to their respective found module versions. .. code-block:: cmake pkg_check_modules (XRENDER REQUIRED xrender) Requires any version of ``xrender``. Example output variables set by a successful call:: XRENDER_LIBRARIES=Xrender;X11 XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp #]========================================] macro(pkg_check_modules _prefix _module0) _pkgconfig_parse_options(_pkg_modules _pkg_is_required _pkg_is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global "${_module0}" ${ARGN}) # check cached value if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND OR (NOT "${ARGN}" STREQUAL "" AND NOT "${__pkg_config_arguments_${_prefix}}" STREQUAL "${_module0};${ARGN}") OR ( "${ARGN}" STREQUAL "" AND NOT "${__pkg_config_arguments_${_prefix}}" STREQUAL "${_module0}")) _pkg_check_modules_internal("${_pkg_is_required}" "${_pkg_is_silent}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global} "${_prefix}" ${_pkg_modules}) _pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION}) if (${_prefix}_FOUND) _pkgconfig_set(__pkg_config_arguments_${_prefix} "${_module0};${ARGN}") endif() else() if (${_prefix}_FOUND) _pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global}) endif() endif() endmacro() #[========================================[.rst: .. command:: pkg_search_module The behavior of this command is the same as :command:`pkg_check_modules`, except that rather than checking for all the specified modules, it searches for just the first successful match. .. code-block:: cmake pkg_search_module(<prefix> [REQUIRED] [QUIET] [NO_CMAKE_PATH] [NO_CMAKE_ENVIRONMENT_PATH] [IMPORTED_TARGET [GLOBAL]] <moduleSpec> [<moduleSpec>...]) If a module is found, the ``<prefix>_MODULE_NAME`` variable will contain the name of the matching module. This variable can be used if you need to run :command:`pkg_get_variable`. Example: .. code-block:: cmake pkg_search_module (BAR libxml-2.0 libxml2 libxml>=2) #]========================================] macro(pkg_search_module _prefix _module0) _pkgconfig_parse_options(_pkg_modules_alt _pkg_is_required _pkg_is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global "${_module0}" ${ARGN}) # check cached value if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND) set(_pkg_modules_found 0) if (NOT ${_pkg_is_silent}) message(STATUS "Checking for one of the modules '${_pkg_modules_alt}'") endif () # iterate through all modules and stop at the first working one. foreach(_pkg_alt ${_pkg_modules_alt}) if(NOT _pkg_modules_found) _pkg_check_modules_internal(0 1 ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global} "${_prefix}" "${_pkg_alt}") endif() if (${_prefix}_FOUND) set(_pkg_modules_found 1) break() endif() endforeach() if (NOT ${_prefix}_FOUND) if(${_pkg_is_required}) message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found") endif() endif() _pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION}) elseif (${_prefix}_FOUND) _pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global}) endif() endmacro() #[========================================[.rst: .. command:: pkg_get_variable Retrieves the value of a pkg-config variable ``varName`` and stores it in the result variable ``resultVar`` in the calling scope. .. code-block:: cmake pkg_get_variable(<resultVar> <moduleName> <varName>) If ``pkg-config`` returns multiple values for the specified variable, ``resultVar`` will contain a :ref:`;-list <CMake Language Lists>`. For example: .. code-block:: cmake pkg_get_variable(GI_GIRDIR gobject-introspection-1.0 girdir) #]========================================] function (pkg_get_variable result pkg variable) _pkg_set_path_internal() _pkgconfig_invoke("${pkg}" "prefix" "result" "" "--variable=${variable}") set("${result}" "${prefix_result}" PARENT_SCOPE) _pkg_restore_path_internal() endfunction () #[========================================[.rst: Variables Affecting Behavior ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. variable:: PKG_CONFIG_EXECUTABLE This can be set to the path of the pkg-config executable. If not provided, it will be set by the module as a result of calling :command:`find_program` internally. The ``PKG_CONFIG`` environment variable can be used as a hint. .. variable:: PKG_CONFIG_USE_CMAKE_PREFIX_PATH Specifies whether :command:`pkg_check_modules` and :command:`pkg_search_module` should add the paths in the :variable:`CMAKE_PREFIX_PATH`, :variable:`CMAKE_FRAMEWORK_PATH` and :variable:`CMAKE_APPBUNDLE_PATH` cache and environment variables to the ``pkg-config`` search path. If this variable is not set, this behavior is enabled by default if :variable:`CMAKE_MINIMUM_REQUIRED_VERSION` is 3.1 or later, disabled otherwise. #]========================================] ### Local Variables: ### mode: cmake ### End: cmake_policy(POP)
Close