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 : FindOpenGL.cmake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. #[=======================================================================[.rst: FindOpenGL ---------- FindModule for OpenGL and OpenGL Utility Library (GLU). Optional COMPONENTS ^^^^^^^^^^^^^^^^^^^ This module respects several optional COMPONENTS: ``EGL``, ``GLX``, and ``OpenGL``. There are corresponding import targets for each of these flags. IMPORTED Targets ^^^^^^^^^^^^^^^^ This module defines the :prop_tgt:`IMPORTED` targets: ``OpenGL::GL`` Defined to the platform-specific OpenGL libraries if the system has OpenGL. ``OpenGL::OpenGL`` Defined to libOpenGL if the system is GLVND-based. ``OpenGL::GLU`` Defined if the system has OpenGL Utility Library (GLU). ``OpenGL::GLX`` Defined if the system has OpenGL Extension to the X Window System (GLX). ``OpenGL::EGL`` Defined if the system has EGL. Result Variables ^^^^^^^^^^^^^^^^ This module sets the following variables: ``OPENGL_FOUND`` True, if the system has OpenGL and all components are found. ``OPENGL_XMESA_FOUND`` True, if the system has XMESA. ``OPENGL_GLU_FOUND`` True, if the system has GLU. ``OpenGL_OpenGL_FOUND`` True, if the system has an OpenGL library. ``OpenGL_GLX_FOUND`` True, if the system has GLX. ``OpenGL_EGL_FOUND`` True, if the system has EGL. ``OPENGL_INCLUDE_DIR`` Path to the OpenGL include directory. ``OPENGL_EGL_INCLUDE_DIRS`` Path to the EGL include directory. ``OPENGL_LIBRARIES`` Paths to the OpenGL library, windowing system libraries, and GLU libraries. On Linux, this assumes GLX and is never correct for EGL-based targets. Clients are encouraged to use the ``OpenGL::*`` import targets instead. Cache variables ^^^^^^^^^^^^^^^ The following cache variables may also be set: ``OPENGL_egl_LIBRARY`` Path to the EGL library. ``OPENGL_glu_LIBRARY`` Path to the GLU library. ``OPENGL_glx_LIBRARY`` Path to the GLVND 'GLX' library. ``OPENGL_opengl_LIBRARY`` Path to the GLVND 'OpenGL' library ``OPENGL_gl_LIBRARY`` Path to the OpenGL library. New code should prefer the ``OpenGL::*`` import targets. Linux-specific ^^^^^^^^^^^^^^ Some Linux systems utilize GLVND as a new ABI for OpenGL. GLVND separates context libraries from OpenGL itself; OpenGL lives in "libOpenGL", and contexts are defined in "libGLX" or "libEGL". GLVND is currently the only way to get OpenGL 3+ functionality via EGL in a manner portable across vendors. Projects may use GLVND explicitly with target ``OpenGL::OpenGL`` and either ``OpenGL::GLX`` or ``OpenGL::EGL``. Projects may use the ``OpenGL::GL`` target (or ``OPENGL_LIBRARIES`` variable) to use legacy GL interfaces. These will use the legacy GL library located by ``OPENGL_gl_LIBRARY``, if available. If ``OPENGL_gl_LIBRARY`` is empty or not found and GLVND is available, the ``OpenGL::GL`` target will use GLVND ``OpenGL::OpenGL`` and ``OpenGL::GLX`` (and the ``OPENGL_LIBRARIES`` variable will use the corresponding libraries). Thus, for non-EGL-based Linux targets, the ``OpenGL::GL`` target is most portable. A ``OpenGL_GL_PREFERENCE`` variable may be set to specify the preferred way to provide legacy GL interfaces in case multiple choices are available. The value may be one of: ``GLVND`` If the GLVND OpenGL and GLX libraries are available, prefer them. This forces ``OPENGL_gl_LIBRARY`` to be empty. This is the default if components were requested (since components correspond to GLVND libraries) or if policy :policy:`CMP0072` is set to ``NEW``. ``LEGACY`` Prefer to use the legacy libGL library, if available. This is the default if no components were requested and policy :policy:`CMP0072` is not set to ``NEW``. For EGL targets the client must rely on GLVND support on the user's system. Linking should use the ``OpenGL::OpenGL OpenGL::EGL`` targets. Using GLES* libraries is theoretically possible in place of ``OpenGL::OpenGL``, but this module does not currently support that; contributions welcome. ``OPENGL_egl_LIBRARY`` and ``OPENGL_EGL_INCLUDE_DIRS`` are defined in the case of GLVND. For non-GLVND Linux and other systems these are left undefined. macOS-Specific ^^^^^^^^^^^^^^ On OSX FindOpenGL defaults to using the framework version of OpenGL. People will have to change the cache values of OPENGL_glu_LIBRARY and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX. #]=======================================================================] set(_OpenGL_REQUIRED_VARS OPENGL_gl_LIBRARY) # Provide OPENGL_USE_<C> variables for each component. foreach(component ${OpenGL_FIND_COMPONENTS}) string(TOUPPER ${component} _COMPONENT) set(OPENGL_USE_${_COMPONENT} 1) endforeach() set(_OpenGL_CACHE_VARS) if (CYGWIN) find_path(OPENGL_INCLUDE_DIR GL/gl.h ) list(APPEND _OpenGL_REQUIRED_VARS OPENGL_INCLUDE_DIR) find_library(OPENGL_gl_LIBRARY opengl32 ) find_library(OPENGL_glu_LIBRARY glu32 ) list(APPEND _OpenGL_CACHE_VARS OPENGL_INCLUDE_DIR OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY ) elseif (WIN32) if(BORLAND) set (OPENGL_gl_LIBRARY import32 CACHE STRING "OpenGL library for win32") set (OPENGL_glu_LIBRARY import32 CACHE STRING "GLU library for win32") else() set (OPENGL_gl_LIBRARY opengl32 CACHE STRING "OpenGL library for win32") set (OPENGL_glu_LIBRARY glu32 CACHE STRING "GLU library for win32") endif() list(APPEND _OpenGL_CACHE_VARS OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY ) elseif (APPLE) # The OpenGL.framework provides both gl and glu find_library(OPENGL_gl_LIBRARY OpenGL DOC "OpenGL library for OS X") find_library(OPENGL_glu_LIBRARY OpenGL DOC "GLU library for OS X (usually same as OpenGL library)") find_path(OPENGL_INCLUDE_DIR OpenGL/gl.h DOC "Include for OpenGL on OS X") list(APPEND _OpenGL_REQUIRED_VARS OPENGL_INCLUDE_DIR) list(APPEND _OpenGL_CACHE_VARS OPENGL_INCLUDE_DIR OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY ) else() if (CMAKE_SYSTEM_NAME MATCHES "HP-UX") # Handle HP-UX cases where we only want to find OpenGL in either hpux64 # or hpux32 depending on if we're doing a 64 bit build. if(CMAKE_SIZEOF_VOID_P EQUAL 4) set(_OPENGL_LIB_PATH /opt/graphics/OpenGL/lib/hpux32/) else() set(_OPENGL_LIB_PATH /opt/graphics/OpenGL/lib/hpux64/ /opt/graphics/OpenGL/lib/pa20_64) endif() elseif(CMAKE_SYSTEM_NAME STREQUAL Haiku) set(_OPENGL_LIB_PATH /boot/develop/lib/x86) set(_OPENGL_INCLUDE_PATH /boot/develop/headers/os/opengl) endif() # The first line below is to make sure that the proper headers # are used on a Linux machine with the NVidia drivers installed. # They replace Mesa with NVidia's own library but normally do not # install headers and that causes the linking to # fail since the compiler finds the Mesa headers but NVidia's library. # Make sure the NVIDIA directory comes BEFORE the others. # - Atanas Georgiev <atanas@cs.columbia.edu> find_path(OPENGL_INCLUDE_DIR GL/gl.h /usr/share/doc/NVIDIA_GLX-1.0/include /usr/openwin/share/include /opt/graphics/OpenGL/include ${_OPENGL_INCLUDE_PATH} ) find_path(OPENGL_GLX_INCLUDE_DIR GL/glx.h ${_OPENGL_INCLUDE_PATH}) find_path(OPENGL_EGL_INCLUDE_DIR EGL/egl.h ${_OPENGL_INCLUDE_PATH}) find_path(OPENGL_xmesa_INCLUDE_DIR GL/xmesa.h /usr/share/doc/NVIDIA_GLX-1.0/include /usr/openwin/share/include /opt/graphics/OpenGL/include ) list(APPEND _OpenGL_CACHE_VARS OPENGL_INCLUDE_DIR OPENGL_GLX_INCLUDE_DIR OPENGL_EGL_INCLUDE_DIR OPENGL_xmesa_INCLUDE_DIR ) # Search for the GLVND libraries. We do this regardless of COMPONENTS; we'll # take into account the COMPONENTS logic later. find_library(OPENGL_opengl_LIBRARY NAMES OpenGL PATHS ${_OPENGL_LIB_PATH} ) find_library(OPENGL_glx_LIBRARY NAMES GLX PATHS ${_OPENGL_LIB_PATH} PATH_SUFFIXES libglvnd ) find_library(OPENGL_egl_LIBRARY NAMES EGL PATHS ${_OPENGL_LIB_PATH} PATH_SUFFIXES libglvnd ) find_library(OPENGL_glu_LIBRARY NAMES GLU MesaGLU PATHS ${OPENGL_gl_LIBRARY} /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/shlib ) list(APPEND _OpenGL_CACHE_VARS OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_egl_LIBRARY OPENGL_glu_LIBRARY ) set(_OpenGL_GL_POLICY_WARN 0) if(NOT DEFINED OpenGL_GL_PREFERENCE) set(OpenGL_GL_PREFERENCE "") endif() if(NOT OpenGL_GL_PREFERENCE STREQUAL "") # A preference has been explicitly specified. if(NOT OpenGL_GL_PREFERENCE MATCHES "^(GLVND|LEGACY)$") message(FATAL_ERROR "OpenGL_GL_PREFERENCE value '${OpenGL_GL_PREFERENCE}' not recognized. " "Allowed values are 'GLVND' and 'LEGACY'." ) endif() elseif(OpenGL_FIND_COMPONENTS) # No preference was explicitly specified, but the caller did request # at least one GLVND component. Prefer GLVND for legacy GL. set(OpenGL_GL_PREFERENCE "GLVND") else() # No preference was explicitly specified and no GLVND components were # requested. Use a policy to choose the default. cmake_policy(GET CMP0072 _OpenGL_GL_POLICY) if("x${_OpenGL_GL_POLICY}x" STREQUAL "xNEWx") set(OpenGL_GL_PREFERENCE "GLVND") else() set(OpenGL_GL_PREFERENCE "LEGACY") if("x${_OpenGL_GL_POLICY}x" STREQUAL "xx") set(_OpenGL_GL_POLICY_WARN 1) endif() endif() unset(_OpenGL_GL_POLICY) endif() if("x${OpenGL_GL_PREFERENCE}x" STREQUAL "xGLVNDx" AND OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY) # We can provide legacy GL using GLVND libraries. # Do not use any legacy GL library. set(OPENGL_gl_LIBRARY "") else() # We cannot provide legacy GL using GLVND libraries. # Search for the legacy GL library. find_library(OPENGL_gl_LIBRARY NAMES GL MesaGL PATHS /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/shlib ${_OPENGL_LIB_PATH} PATH_SUFFIXES libglvnd ) list(APPEND _OpenGL_CACHE_VARS OPENGL_gl_LIBRARY) endif() if(_OpenGL_GL_POLICY_WARN AND OPENGL_gl_LIBRARY AND OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY) cmake_policy(GET_WARNING CMP0072 _cmp0072_warning) message(AUTHOR_WARNING "${_cmp0072_warning}\n" "FindOpenGL found both a legacy GL library:\n" " OPENGL_gl_LIBRARY: ${OPENGL_gl_LIBRARY}\n" "and GLVND libraries for OpenGL and GLX:\n" " OPENGL_opengl_LIBRARY: ${OPENGL_opengl_LIBRARY}\n" " OPENGL_glx_LIBRARY: ${OPENGL_glx_LIBRARY}\n" "OpenGL_GL_PREFERENCE has not been set to \"GLVND\" or \"LEGACY\", so for " "compatibility with CMake 3.10 and below the legacy GL library will be used." ) endif() unset(_OpenGL_GL_POLICY_WARN) # FPHSA cannot handle "this OR that is required", so we conditionally set what # it must look for. First clear any previous config we might have done: set(_OpenGL_REQUIRED_VARS) # now we append the libraries as appropriate. The complicated logic # basically comes down to "use libOpenGL when we can, and add in specific # context mechanisms when requested, or we need them to preserve the previous # default where glx is always available." if((NOT OPENGL_USE_EGL AND NOT OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY AND NOT OPENGL_gl_LIBRARY) OR (NOT OPENGL_USE_EGL AND NOT OPENGL_glx_LIBRARY AND NOT OPENGL_gl_LIBRARY) OR (NOT OPENGL_USE_EGL AND OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY) OR ( OPENGL_USE_EGL)) list(APPEND _OpenGL_REQUIRED_VARS OPENGL_opengl_LIBRARY) endif() # GLVND GLX library. Preferred when available. if((NOT OPENGL_USE_OPENGL AND NOT OPENGL_USE_GLX AND NOT OPENGL_USE_EGL AND NOT OPENGL_glx_LIBRARY AND NOT OPENGL_gl_LIBRARY) OR ( OPENGL_USE_GLX AND NOT OPENGL_USE_EGL AND NOT OPENGL_glx_LIBRARY AND NOT OPENGL_gl_LIBRARY) OR (NOT OPENGL_USE_EGL AND OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY) OR (OPENGL_USE_GLX AND OPENGL_USE_EGL)) list(APPEND _OpenGL_REQUIRED_VARS OPENGL_glx_LIBRARY) endif() # GLVND EGL library. if(OPENGL_USE_EGL) list(APPEND _OpenGL_REQUIRED_VARS OPENGL_egl_LIBRARY) endif() # Old-style "libGL" library: used as a fallback when GLVND isn't available. if((NOT OPENGL_USE_EGL AND NOT OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY AND OPENGL_gl_LIBRARY) OR (NOT OPENGL_USE_EGL AND NOT OPENGL_glx_LIBRARY AND OPENGL_gl_LIBRARY)) list(APPEND _OpenGL_REQUIRED_VARS OPENGL_gl_LIBRARY) endif() # We always need the 'gl.h' include dir. list(APPEND _OpenGL_REQUIRED_VARS OPENGL_INCLUDE_DIR) unset(_OPENGL_INCLUDE_PATH) unset(_OPENGL_LIB_PATH) find_library(OPENGL_glu_LIBRARY NAMES GLU MesaGLU PATHS ${OPENGL_gl_LIBRARY} /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/shlib ) endif () if(OPENGL_xmesa_INCLUDE_DIR) set( OPENGL_XMESA_FOUND "YES" ) else() set( OPENGL_XMESA_FOUND "NO" ) endif() if(OPENGL_glu_LIBRARY) set( OPENGL_GLU_FOUND "YES" ) else() set( OPENGL_GLU_FOUND "NO" ) endif() # OpenGL_OpenGL_FOUND is a bit unique in that it is okay if /either/ libOpenGL # or libGL is found. # Using libGL with libEGL is never okay, though; we handle that case later. if(NOT OPENGL_opengl_LIBRARY AND NOT OPENGL_gl_LIBRARY) set(OpenGL_OpenGL_FOUND FALSE) else() set(OpenGL_OpenGL_FOUND TRUE) endif() if(OPENGL_glx_LIBRARY AND OPENGL_GLX_INCLUDE_DIR) set(OpenGL_GLX_FOUND TRUE) else() set(OpenGL_GLX_FOUND FALSE) endif() if(OPENGL_egl_LIBRARY AND OPENGL_EGL_INCLUDE_DIR) set(OpenGL_EGL_FOUND TRUE) else() set(OpenGL_EGL_FOUND FALSE) endif() # User-visible names should be plural. if(OPENGL_EGL_INCLUDE_DIR) set(OPENGL_EGL_INCLUDE_DIRS ${OPENGL_EGL_INCLUDE_DIR}) endif() include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGL REQUIRED_VARS ${_OpenGL_REQUIRED_VARS} HANDLE_COMPONENTS) unset(_OpenGL_REQUIRED_VARS) # OpenGL:: targets if(OPENGL_FOUND) # ::OpenGL is a GLVND library, and thus Linux-only: we don't bother checking # for a framework version of this library. if(OPENGL_opengl_LIBRARY AND NOT TARGET OpenGL::OpenGL) if(IS_ABSOLUTE "${OPENGL_opengl_LIBRARY}") add_library(OpenGL::OpenGL UNKNOWN IMPORTED) set_target_properties(OpenGL::OpenGL PROPERTIES IMPORTED_LOCATION "${OPENGL_opengl_LIBRARY}") else() add_library(OpenGL::OpenGL INTERFACE IMPORTED) set_target_properties(OpenGL::OpenGL PROPERTIES IMPORTED_LIBNAME "${OPENGL_opengl_LIBRARY}") endif() set_target_properties(OpenGL::OpenGL PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_INCLUDE_DIR}") endif() # ::GLX is a GLVND library, and thus Linux-only: we don't bother checking # for a framework version of this library. if(OpenGL_GLX_FOUND AND NOT TARGET OpenGL::GLX) if(IS_ABSOLUTE "${OPENGL_glx_LIBRARY}") add_library(OpenGL::GLX UNKNOWN IMPORTED) set_target_properties(OpenGL::GLX PROPERTIES IMPORTED_LOCATION "${OPENGL_glx_LIBRARY}") else() add_library(OpenGL::GLX INTERFACE IMPORTED) set_target_properties(OpenGL::GLX PROPERTIES IMPORTED_LIBNAME "${OPENGL_glx_LIBRARY}") endif() set_target_properties(OpenGL::GLX PROPERTIES INTERFACE_LINK_LIBRARIES OpenGL::OpenGL) set_target_properties(OpenGL::GLX PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_GLX_INCLUDE_DIR}") endif() if(OPENGL_gl_LIBRARY AND NOT TARGET OpenGL::GL) # A legacy GL library is available, so use it for the legacy GL target. if(IS_ABSOLUTE "${OPENGL_gl_LIBRARY}") add_library(OpenGL::GL UNKNOWN IMPORTED) if(OPENGL_gl_LIBRARY MATCHES "/([^/]+)\\.framework$") set(_gl_fw "${OPENGL_gl_LIBRARY}/${CMAKE_MATCH_1}") if(EXISTS "${_gl_fw}.tbd") string(APPEND _gl_fw ".tbd") endif() set_target_properties(OpenGL::GL PROPERTIES IMPORTED_LOCATION "${_gl_fw}") else() set_target_properties(OpenGL::GL PROPERTIES IMPORTED_LOCATION "${OPENGL_gl_LIBRARY}") endif() else() add_library(OpenGL::GL INTERFACE IMPORTED) set_target_properties(OpenGL::GL PROPERTIES IMPORTED_LIBNAME "${OPENGL_gl_LIBRARY}") endif() set_target_properties(OpenGL::GL PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_INCLUDE_DIR}") elseif(NOT TARGET OpenGL::GL AND TARGET OpenGL::OpenGL AND TARGET OpenGL::GLX) # A legacy GL library is not available, but we can provide the legacy GL # target using GLVND OpenGL+GLX. add_library(OpenGL::GL INTERFACE IMPORTED) set_target_properties(OpenGL::GL PROPERTIES INTERFACE_LINK_LIBRARIES OpenGL::OpenGL) set_property(TARGET OpenGL::GL APPEND PROPERTY INTERFACE_LINK_LIBRARIES OpenGL::GLX) set_target_properties(OpenGL::GL PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_INCLUDE_DIR}") endif() # ::EGL is a GLVND library, and thus Linux-only: we don't bother checking # for a framework version of this library. # Note we test for OpenGL::OpenGL as a target. When this module is updated to # support GLES, we would additionally want to check for the hypothetical GLES # target and enable EGL if either ::GLES or ::OpenGL is created. if(TARGET OpenGL::OpenGL AND OpenGL_EGL_FOUND AND NOT TARGET OpenGL::EGL) if(IS_ABSOLUTE "${OPENGL_egl_LIBRARY}") add_library(OpenGL::EGL UNKNOWN IMPORTED) set_target_properties(OpenGL::EGL PROPERTIES IMPORTED_LOCATION "${OPENGL_egl_LIBRARY}") else() add_library(OpenGL::EGL INTERFACE IMPORTED) set_target_properties(OpenGL::EGL PROPERTIES IMPORTED_LIBNAME "${OPENGL_egl_LIBRARY}") endif() set_target_properties(OpenGL::EGL PROPERTIES INTERFACE_LINK_LIBRARIES OpenGL::OpenGL) # Note that EGL's include directory is different from OpenGL/GLX's! set_target_properties(OpenGL::EGL PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENGL_EGL_INCLUDE_DIR}") endif() if(OPENGL_GLU_FOUND AND NOT TARGET OpenGL::GLU) if(IS_ABSOLUTE "${OPENGL_glu_LIBRARY}") add_library(OpenGL::GLU UNKNOWN IMPORTED) if(OPENGL_glu_LIBRARY MATCHES "/([^/]+)\\.framework$") set(_glu_fw "${OPENGL_glu_LIBRARY}/${CMAKE_MATCH_1}") if(EXISTS "${_glu_fw}.tbd") string(APPEND _glu_fw ".tbd") endif() set_target_properties(OpenGL::GLU PROPERTIES IMPORTED_LOCATION "${_glu_fw}") else() set_target_properties(OpenGL::GLU PROPERTIES IMPORTED_LOCATION "${OPENGL_glu_LIBRARY}") endif() else() add_library(OpenGL::GLU INTERFACE IMPORTED) set_target_properties(OpenGL::GLU PROPERTIES IMPORTED_LIBNAME "${OPENGL_glu_LIBRARY}") endif() set_target_properties(OpenGL::GLU PROPERTIES INTERFACE_LINK_LIBRARIES OpenGL::GL) endif() # OPENGL_LIBRARIES mirrors OpenGL::GL's logic ... if(OPENGL_gl_LIBRARY) set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY}) elseif(TARGET OpenGL::OpenGL AND TARGET OpenGL::GLX) set(OPENGL_LIBRARIES ${OPENGL_opengl_LIBRARY} ${OPENGL_glx_LIBRARY}) else() set(OPENGL_LIBRARIES "") endif() # ... and also includes GLU, if available. if(TARGET OpenGL::GLU) list(APPEND OPENGL_LIBRARIES ${OPENGL_glu_LIBRARY}) endif() endif() # This deprecated setting is for backward compatibility with CMake1.4 set(OPENGL_LIBRARY ${OPENGL_LIBRARIES}) # This deprecated setting is for backward compatibility with CMake1.4 set(OPENGL_INCLUDE_PATH ${OPENGL_INCLUDE_DIR}) mark_as_advanced(${_OpenGL_CACHE_VARS}) unset(_OpenGL_CACHE_VARS)
Close