Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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 /
cmake-3.22 /
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
UseJava
[ DIR ]
drwxr-xr-x
UseSWIG
[ DIR ]
drwxr-xr-x
AddFileDependencies.cmake
955
B
-rw-r--r--
AndroidTestUtilities.cmake
6.22
KB
-rw-r--r--
BasicConfigVersion-AnyNewerVer...
2.01
KB
-rw-r--r--
BasicConfigVersion-ExactVersio...
3.38
KB
-rw-r--r--
BasicConfigVersion-SameMajorVe...
2.91
KB
-rw-r--r--
BasicConfigVersion-SameMinorVe...
3.8
KB
-rw-r--r--
BundleUtilities.cmake
40.91
KB
-rw-r--r--
CMake.cmake
307
B
-rw-r--r--
CMakeASM-ATTInformation.cmake
566
B
-rw-r--r--
CMakeASMCompiler.cmake.in
942
B
-rw-r--r--
CMakeASMInformation.cmake
3.93
KB
-rw-r--r--
CMakeASM_MASMInformation.cmake
918
B
-rw-r--r--
CMakeASM_NASMInformation.cmake
1.96
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.96
KB
-rw-r--r--
CMakeCCompilerABI.c
511
B
-rw-r--r--
CMakeCCompilerId.c.in
2.85
KB
-rw-r--r--
CMakeCInformation.cmake
6.74
KB
-rw-r--r--
CMakeCSharpCompiler.cmake.in
477
B
-rw-r--r--
CMakeCSharpCompilerId.cs.in
1.59
KB
-rw-r--r--
CMakeCSharpInformation.cmake
2.94
KB
-rw-r--r--
CMakeCUDACompiler.cmake.in
3.27
KB
-rw-r--r--
CMakeCUDACompilerABI.cu
394
B
-rw-r--r--
CMakeCUDACompilerId.cu.in
1.7
KB
-rw-r--r--
CMakeCUDAInformation.cmake
8.78
KB
-rw-r--r--
CMakeCXXCompiler.cmake.in
3.52
KB
-rw-r--r--
CMakeCXXCompilerABI.cpp
388
B
-rw-r--r--
CMakeCXXCompilerId.cpp.in
2.82
KB
-rw-r--r--
CMakeCXXInformation.cmake
9.96
KB
-rw-r--r--
CMakeCheckCompilerFlagCommonPa...
2.1
KB
-rw-r--r--
CMakeCommonLanguageInclude.cma...
1.12
KB
-rw-r--r--
CMakeCompilerABI.h
1.54
KB
-rw-r--r--
CMakeCompilerIdDetection.cmake
4.72
KB
-rw-r--r--
CMakeConfigurableFile.in
34
B
-rw-r--r--
CMakeDependentOption.cmake
3.04
KB
-rw-r--r--
CMakeDetermineASM-ATTCompiler....
394
B
-rw-r--r--
CMakeDetermineASMCompiler.cmak...
11.34
KB
-rw-r--r--
CMakeDetermineASM_MASMCompiler...
586
B
-rw-r--r--
CMakeDetermineASM_NASMCompiler...
937
B
-rw-r--r--
CMakeDetermineCCompiler.cmake
8.38
KB
-rw-r--r--
CMakeDetermineCSharpCompiler.c...
1.63
KB
-rw-r--r--
CMakeDetermineCUDACompiler.cma...
29.12
KB
-rw-r--r--
CMakeDetermineCXXCompiler.cmak...
8.5
KB
-rw-r--r--
CMakeDetermineCompileFeatures....
9.08
KB
-rw-r--r--
CMakeDetermineCompiler.cmake
6.77
KB
-rw-r--r--
CMakeDetermineCompilerABI.cmak...
8.27
KB
-rw-r--r--
CMakeDetermineCompilerId.cmake
47.83
KB
-rw-r--r--
CMakeDetermineFortranCompiler....
12.07
KB
-rw-r--r--
CMakeDetermineHIPCompiler.cmak...
6.81
KB
-rw-r--r--
CMakeDetermineISPCCompiler.cma...
2.97
KB
-rw-r--r--
CMakeDetermineJavaCompiler.cma...
3.67
KB
-rw-r--r--
CMakeDetermineOBJCCompiler.cma...
7.28
KB
-rw-r--r--
CMakeDetermineOBJCXXCompiler.c...
7.65
KB
-rw-r--r--
CMakeDetermineRCCompiler.cmake
2.05
KB
-rw-r--r--
CMakeDetermineSwiftCompiler.cm...
2.93
KB
-rw-r--r--
CMakeDetermineSystem.cmake
8.44
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.12
KB
-rw-r--r--
CMakeFindBinUtils.cmake
9.86
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.54
KB
-rw-r--r--
CMakeFindJavaCommon.cmake
1
KB
-rw-r--r--
CMakeFindKate.cmake
1.02
KB
-rw-r--r--
CMakeFindPackageMode.cmake
6.1
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.67
KB
-rw-r--r--
CMakeFortranCompilerABI.F
1.09
KB
-rw-r--r--
CMakeFortranCompilerABI.F90
1.08
KB
-rw-r--r--
CMakeFortranCompilerId.F.in
9.88
KB
-rw-r--r--
CMakeFortranInformation.cmake
8.82
KB
-rw-r--r--
CMakeGenericSystem.cmake
6.64
KB
-rw-r--r--
CMakeGraphVizOptions.cmake
3.73
KB
-rw-r--r--
CMakeHIPCompiler.cmake.in
2.57
KB
-rw-r--r--
CMakeHIPCompilerABI.hip
293
B
-rw-r--r--
CMakeHIPCompilerId.hip.in
1.6
KB
-rw-r--r--
CMakeHIPInformation.cmake
5.51
KB
-rw-r--r--
CMakeIOSInstallCombined.cmake
10.2
KB
-rw-r--r--
CMakeISPCCompiler.cmake.in
1.15
KB
-rw-r--r--
CMakeISPCCompilerABI.ispc
545
B
-rw-r--r--
CMakeISPCCompilerId.ispc.in
2.09
KB
-rw-r--r--
CMakeISPCInformation.cmake
2.35
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
3.16
KB
-rw-r--r--
CMakeOBJCCompilerABI.m
556
B
-rw-r--r--
CMakeOBJCCompilerId.m.in
2.06
KB
-rw-r--r--
CMakeOBJCInformation.cmake
7.1
KB
-rw-r--r--
CMakeOBJCXXCompiler.cmake.in
3.64
KB
-rw-r--r--
CMakeOBJCXXCompilerABI.mm
557
B
-rw-r--r--
CMakeOBJCXXCompilerId.mm.in
2.03
KB
-rw-r--r--
CMakeOBJCXXInformation.cmake
10.43
KB
-rw-r--r--
CMakePackageConfigHelpers.cmak...
13.97
KB
-rw-r--r--
CMakeParseArguments.cmake
581
B
-rw-r--r--
CMakeParseImplicitIncludeInfo....
9.54
KB
-rw-r--r--
CMakeParseImplicitLinkInfo.cma...
11.26
KB
-rw-r--r--
CMakeParseLibraryArchitecture....
1.69
KB
-rw-r--r--
CMakePlatformId.h.in
7.95
KB
-rw-r--r--
CMakePrintHelpers.cmake
4.17
KB
-rw-r--r--
CMakePrintSystemInformation.cm...
2.14
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
5.21
KB
-rw-r--r--
CMakeSystem.cmake.in
563
B
-rw-r--r--
CMakeSystemSpecificInformation...
2.34
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.9
KB
-rw-r--r--
CMakeTestCSharpCompiler.cmake
2.79
KB
-rw-r--r--
CMakeTestCUDACompiler.cmake
4.24
KB
-rw-r--r--
CMakeTestCXXCompiler.cmake
3.8
KB
-rw-r--r--
CMakeTestCompilerCommon.cmake
1.3
KB
-rw-r--r--
CMakeTestFortranCompiler.cmake
4.68
KB
-rw-r--r--
CMakeTestGNU.c
268
B
-rw-r--r--
CMakeTestHIPCompiler.cmake
3.96
KB
-rw-r--r--
CMakeTestISPCCompiler.cmake
1.42
KB
-rw-r--r--
CMakeTestJavaCompiler.cmake
484
B
-rw-r--r--
CMakeTestOBJCCompiler.cmake
4.02
KB
-rw-r--r--
CMakeTestOBJCXXCompiler.cmake
4.05
KB
-rw-r--r--
CMakeTestRCCompiler.cmake
573
B
-rw-r--r--
CMakeTestSwiftCompiler.cmake
2.94
KB
-rw-r--r--
CMakeUnixFindMake.cmake
575
B
-rw-r--r--
CMakeVerifyManifest.cmake
3.88
KB
-rw-r--r--
CPack.cmake
35.12
KB
-rw-r--r--
CPackComponent.cmake
20.26
KB
-rw-r--r--
CPackIFW.cmake
25.82
KB
-rw-r--r--
CPackIFWConfigureFile.cmake
2.21
KB
-rw-r--r--
CSharpUtilities.cmake
10.73
KB
-rw-r--r--
CTest.cmake
9
KB
-rw-r--r--
CTestCoverageCollectGCOV.cmake
11.98
KB
-rw-r--r--
CTestScriptMode.cmake
662
B
-rw-r--r--
CTestTargets.cmake
3.09
KB
-rw-r--r--
CTestUseLaunchers.cmake
2.92
KB
-rw-r--r--
CheckCCompilerFlag.cmake
1.5
KB
-rw-r--r--
CheckCSourceCompiles.cmake
3.24
KB
-rw-r--r--
CheckCSourceRuns.cmake
3.19
KB
-rw-r--r--
CheckCXXCompilerFlag.cmake
1.53
KB
-rw-r--r--
CheckCXXSourceCompiles.cmake
3.26
KB
-rw-r--r--
CheckCXXSourceRuns.cmake
3.21
KB
-rw-r--r--
CheckCXXSymbolExists.cmake
3.08
KB
-rw-r--r--
CheckCompilerFlag.cmake
1.51
KB
-rw-r--r--
CheckForPthreads.c
273
B
-rw-r--r--
CheckFortranCompilerFlag.cmake
1.59
KB
-rw-r--r--
CheckFortranFunctionExists.cma...
3.11
KB
-rw-r--r--
CheckFortranSourceCompiles.cma...
4.15
KB
-rw-r--r--
CheckFortranSourceRuns.cmake
3.96
KB
-rw-r--r--
CheckFunctionExists.c
433
B
-rw-r--r--
CheckFunctionExists.cmake
4.41
KB
-rw-r--r--
CheckIPOSupported.cmake
6.68
KB
-rw-r--r--
CheckIncludeFile.c.in
130
B
-rw-r--r--
CheckIncludeFile.cmake
4.85
KB
-rw-r--r--
CheckIncludeFile.cxx.in
65
B
-rw-r--r--
CheckIncludeFileCXX.cmake
4.88
KB
-rw-r--r--
CheckIncludeFiles.cmake
6.43
KB
-rw-r--r--
CheckLanguage.cmake
4.31
KB
-rw-r--r--
CheckLibraryExists.cmake
3.59
KB
-rw-r--r--
CheckLibraryExists.lists.in
298
B
-rw-r--r--
CheckLinkerFlag.cmake
3.2
KB
-rw-r--r--
CheckOBJCCompilerFlag.cmake
1.56
KB
-rw-r--r--
CheckOBJCSourceCompiles.cmake
3.25
KB
-rw-r--r--
CheckOBJCSourceRuns.cmake
3.21
KB
-rw-r--r--
CheckOBJCXXCompilerFlag.cmake
1.58
KB
-rw-r--r--
CheckOBJCXXSourceCompiles.cmak...
3.28
KB
-rw-r--r--
CheckOBJCXXSourceRuns.cmake
3.23
KB
-rw-r--r--
CheckPIESupported.cmake
4.53
KB
-rw-r--r--
CheckPrototypeDefinition.c.in
514
B
-rw-r--r--
CheckPrototypeDefinition.cmake
4.46
KB
-rw-r--r--
CheckSizeOf.cmake
348
B
-rw-r--r--
CheckSourceCompiles.cmake
3.49
KB
-rw-r--r--
CheckSourceRuns.cmake
3.37
KB
-rw-r--r--
CheckStructHasMember.cmake
2.49
KB
-rw-r--r--
CheckSymbolExists.cmake
6.62
KB
-rw-r--r--
CheckTypeSize.c.in
1.21
KB
-rw-r--r--
CheckTypeSize.cmake
10.04
KB
-rw-r--r--
CheckTypeSizeMap.cmake.in
31
B
-rw-r--r--
CheckVariableExists.c
382
B
-rw-r--r--
CheckVariableExists.cmake
2.9
KB
-rw-r--r--
Dart.cmake
3.74
KB
-rw-r--r--
DartConfiguration.tcl.in
3.16
KB
-rw-r--r--
DeployQt4.cmake
12.63
KB
-rw-r--r--
Documentation.cmake
2.24
KB
-rw-r--r--
DummyCXXFile.cxx
27
B
-rw-r--r--
ExternalData.cmake
44.33
KB
-rw-r--r--
ExternalData_config.cmake.in
355
B
-rw-r--r--
ExternalProject-download.cmake...
4.07
KB
-rw-r--r--
ExternalProject-gitupdate.cmak...
9.65
KB
-rw-r--r--
ExternalProject-verify.cmake.i...
904
B
-rw-r--r--
ExternalProject.cmake
136.1
KB
-rw-r--r--
FLTKCompatibility.cmake
170
B
-rw-r--r--
FeatureSummary.cmake
27.97
KB
-rw-r--r--
FetchContent.cmake
52.08
KB
-rw-r--r--
FindALSA.cmake
2.18
KB
-rw-r--r--
FindASPELL.cmake
1.02
KB
-rw-r--r--
FindAVIFile.cmake
1.35
KB
-rw-r--r--
FindArmadillo.cmake
4.98
KB
-rw-r--r--
FindBISON.cmake
10.75
KB
-rw-r--r--
FindBLAS.cmake
35.92
KB
-rw-r--r--
FindBZip2.cmake
3.5
KB
-rw-r--r--
FindBacktrace.cmake
3.44
KB
-rw-r--r--
FindBoost.cmake
112.93
KB
-rw-r--r--
FindBullet.cmake
2.75
KB
-rw-r--r--
FindCABLE.cmake
2.54
KB
-rw-r--r--
FindCUDA.cmake
85.67
KB
-rw-r--r--
FindCUDAToolkit.cmake
33.19
KB
-rw-r--r--
FindCURL.cmake
7.2
KB
-rw-r--r--
FindCVS.cmake
1.94
KB
-rw-r--r--
FindCoin3D.cmake
2.25
KB
-rw-r--r--
FindCups.cmake
3.37
KB
-rw-r--r--
FindCurses.cmake
9.2
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
3.78
KB
-rw-r--r--
FindDoxygen.cmake
41.4
KB
-rw-r--r--
FindEXPAT.cmake
2.67
KB
-rw-r--r--
FindEnvModules.cmake
9.73
KB
-rw-r--r--
FindFLEX.cmake
8.46
KB
-rw-r--r--
FindFLTK.cmake
10.8
KB
-rw-r--r--
FindFLTK2.cmake
7.5
KB
-rw-r--r--
FindFontconfig.cmake
2.89
KB
-rw-r--r--
FindFreetype.cmake
5.97
KB
-rw-r--r--
FindGCCXML.cmake
672
B
-rw-r--r--
FindGDAL.cmake
6.46
KB
-rw-r--r--
FindGIF.cmake
3.79
KB
-rw-r--r--
FindGLEW.cmake
10.77
KB
-rw-r--r--
FindGLU.cmake
554
B
-rw-r--r--
FindGLUT.cmake
6.81
KB
-rw-r--r--
FindGSL.cmake
8.86
KB
-rw-r--r--
FindGTK.cmake
3.79
KB
-rw-r--r--
FindGTK2.cmake
36.88
KB
-rw-r--r--
FindGTest.cmake
11.76
KB
-rw-r--r--
FindGettext.cmake
7.81
KB
-rw-r--r--
FindGit.cmake
4.09
KB
-rw-r--r--
FindGnuTLS.cmake
2.44
KB
-rw-r--r--
FindGnuplot.cmake
1.65
KB
-rw-r--r--
FindHDF5.cmake
46.84
KB
-rw-r--r--
FindHSPELL.cmake
1.64
KB
-rw-r--r--
FindHTMLHelp.cmake
1.43
KB
-rw-r--r--
FindHg.cmake
3
KB
-rw-r--r--
FindICU.cmake
15.73
KB
-rw-r--r--
FindIce.cmake
23.82
KB
-rw-r--r--
FindIconv.cmake
5.79
KB
-rw-r--r--
FindIcotool.cmake
1.3
KB
-rw-r--r--
FindImageMagick.cmake
11.56
KB
-rw-r--r--
FindIntl.cmake
5.38
KB
-rw-r--r--
FindJNI.cmake
13.5
KB
-rw-r--r--
FindJPEG.cmake
4.21
KB
-rw-r--r--
FindJasper.cmake
2.96
KB
-rw-r--r--
FindJava.cmake
12.64
KB
-rw-r--r--
FindKDE3.cmake
9.91
KB
-rw-r--r--
FindKDE4.cmake
3.12
KB
-rw-r--r--
FindLAPACK.cmake
21.25
KB
-rw-r--r--
FindLATEX.cmake
6.5
KB
-rw-r--r--
FindLTTngUST.cmake
3.6
KB
-rw-r--r--
FindLibArchive.cmake
2.87
KB
-rw-r--r--
FindLibLZMA.cmake
5.24
KB
-rw-r--r--
FindLibXml2.cmake
4.12
KB
-rw-r--r--
FindLibXslt.cmake
4.75
KB
-rw-r--r--
FindLibinput.cmake
2.13
KB
-rw-r--r--
FindLua.cmake
8.25
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
91.84
KB
-rw-r--r--
FindMatlab.cmake
66.5
KB
-rw-r--r--
FindMotif.cmake
917
B
-rw-r--r--
FindMsys.cmake
894
B
-rw-r--r--
FindODBC.cmake
7.01
KB
-rw-r--r--
FindOpenACC.cmake
9.92
KB
-rw-r--r--
FindOpenAL.cmake
3.21
KB
-rw-r--r--
FindOpenCL.cmake
4.86
KB
-rw-r--r--
FindOpenGL.cmake
20.19
KB
-rw-r--r--
FindOpenMP.cmake
25.53
KB
-rw-r--r--
FindOpenSSL.cmake
23.12
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.74
KB
-rw-r--r--
FindPackageHandleStandardArgs....
22.41
KB
-rw-r--r--
FindPackageMessage.cmake
1.67
KB
-rw-r--r--
FindPatch.cmake
1.77
KB
-rw-r--r--
FindPerl.cmake
2.93
KB
-rw-r--r--
FindPerlLibs.cmake
5.15
KB
-rw-r--r--
FindPhysFS.cmake
1.12
KB
-rw-r--r--
FindPike.cmake
922
B
-rw-r--r--
FindPkgConfig.cmake
35.63
KB
-rw-r--r--
FindPostgreSQL.cmake
12.23
KB
-rw-r--r--
FindProducer.cmake
2.24
KB
-rw-r--r--
FindProtobuf.cmake
23.4
KB
-rw-r--r--
FindPython.cmake
19.65
KB
-rw-r--r--
FindPython2.cmake
14.14
KB
-rw-r--r--
FindPython3.cmake
16.21
KB
-rw-r--r--
FindPythonInterp.cmake
7.15
KB
-rw-r--r--
FindPythonLibs.cmake
15.85
KB
-rw-r--r--
FindQt.cmake
6.31
KB
-rw-r--r--
FindQt3.cmake
9.46
KB
-rw-r--r--
FindQt4.cmake
52.5
KB
-rw-r--r--
FindQuickTime.cmake
1011
B
-rw-r--r--
FindRTI.cmake
3.22
KB
-rw-r--r--
FindRuby.cmake
18.04
KB
-rw-r--r--
FindSDL.cmake
7.92
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
2
KB
-rw-r--r--
FindSWIG.cmake
5.41
KB
-rw-r--r--
FindSelfPackers.cmake
1.59
KB
-rw-r--r--
FindSquish.cmake
9.26
KB
-rw-r--r--
FindSubversion.cmake
6.24
KB
-rw-r--r--
FindTCL.cmake
8.05
KB
-rw-r--r--
FindTIFF.cmake
6.54
KB
-rw-r--r--
FindTclStub.cmake
4.46
KB
-rw-r--r--
FindTclsh.cmake
3.6
KB
-rw-r--r--
FindThreads.cmake
8.22
KB
-rw-r--r--
FindUnixCommands.cmake
1.5
KB
-rw-r--r--
FindVulkan.cmake
4.53
KB
-rw-r--r--
FindWget.cmake
968
B
-rw-r--r--
FindWish.cmake
2.72
KB
-rw-r--r--
FindX11.cmake
34.81
KB
-rw-r--r--
FindXCTest.cmake
7.19
KB
-rw-r--r--
FindXMLRPC.cmake
3.98
KB
-rw-r--r--
FindXalanC.cmake
5.85
KB
-rw-r--r--
FindXercesC.cmake
5.53
KB
-rw-r--r--
FindZLIB.cmake
4.94
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.99
KB
-rw-r--r--
FindwxWindows.cmake
23.82
KB
-rw-r--r--
FortranCInterface.cmake
14.18
KB
-rw-r--r--
GNUInstallDirs.cmake
16.67
KB
-rw-r--r--
GenerateExportHeader.cmake
15.23
KB
-rw-r--r--
GetPrerequisites.cmake
33.28
KB
-rw-r--r--
GoogleTest.cmake
23.34
KB
-rw-r--r--
GoogleTestAddTests.cmake
5.95
KB
-rw-r--r--
ITKCompatibility.cmake
224
B
-rw-r--r--
InstallRequiredSystemLibraries...
30.45
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
848
B
-rw-r--r--
MatlabTestsRedirect.cmake
3.39
KB
-rw-r--r--
ProcessorCount.cmake
8.54
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
648
B
-rw-r--r--
Squish4RunTestCase.sh
631
B
-rwxr-xr-x
SquishRunTestCase.bat
219
B
-rw-r--r--
SquishRunTestCase.sh
272
B
-rwxr-xr-x
SquishTestScript.cmake
3.41
KB
-rw-r--r--
SystemInformation.cmake
3.12
KB
-rw-r--r--
SystemInformation.in
4.59
KB
-rw-r--r--
TestBigEndian.cmake
5.27
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.7
KB
-rw-r--r--
UseJava.cmake
61.87
KB
-rw-r--r--
UsePkgConfig.cmake
2.65
KB
-rw-r--r--
UseQt4.cmake
3.62
KB
-rw-r--r--
UseSWIG.cmake
40.72
KB
-rw-r--r--
Use_wxWindows.cmake
2.1
KB
-rw-r--r--
UsewxWidgets.cmake
3.03
KB
-rw-r--r--
VTKCompatibility.cmake
1.78
KB
-rw-r--r--
WriteBasicConfigVersionFile.cm...
1.65
KB
-rw-r--r--
WriteCompilerDetectionHeader.c...
30.97
KB
-rw-r--r--
ecos_clean.cmake
492
B
-rw-r--r--
exportheader.cmake.in
1.08
KB
-rw-r--r--
kde3init_dummy.cpp.in
227
B
-rw-r--r--
kde3uic.cmake
723
B
-rw-r--r--
readme.txt
233
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). .. versionchanged:: 3.2 X11 is no longer added as a dependency on Unix/Linux systems. .. versionadded:: 3.10 GLVND support on Linux. See the :ref:`Linux Specific` section below. Optional COMPONENTS ^^^^^^^^^^^^^^^^^^^ .. versionadded:: 3.10 This module respects several optional COMPONENTS: ``EGL``, ``GLX``, and ``OpenGL``. There are corresponding import targets for each of these flags. IMPORTED Targets ^^^^^^^^^^^^^^^^ .. versionadded:: 3.8 This module defines the :prop_tgt:`IMPORTED` targets: ``OpenGL::GL`` Defined to the platform-specific OpenGL libraries if the system has OpenGL. ``OpenGL::GLU`` Defined if the system has OpenGL Utility Library (GLU). .. versionadded:: 3.10 Additionally, the following GLVND-specific library targets are defined: ``OpenGL::OpenGL`` Defined to libOpenGL if the system is GLVND-based. ``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. .. versionadded:: 3.10 Variables for GLVND-specific libraries ``OpenGL``, ``EGL`` and ``GLX``. 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. .. versionadded:: 3.10 Variables for GLVND-specific libraries ``OpenGL``, ``EGL`` and ``GLX``. .. _`Linux Specific`: 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. .. versionchanged:: 3.11 This is the default, unless policy :policy:`CMP0072` is set to ``OLD`` and no components are requeted (since components correspond to GLVND libraries). ``LEGACY`` Prefer to use the legacy libGL library, if available. 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 (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) if (CMAKE_FIND_PACKAGE_NAME STREQUAL "GLU") # FindGLU include()'s this module. It's an old pattern, but rather than # trying to suppress this from outside the module (which is then sensitive to # the contents, detect the case in this module and suppress it explicitly. set(FPHSA_NAME_MISMATCHED 1) endif () FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGL REQUIRED_VARS ${_OpenGL_REQUIRED_VARS} HANDLE_COMPONENTS) unset(FPHSA_NAME_MISMATCHED) 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 AND TARGET OpenGL::OpenGL) 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