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 : Qt4Macros.cmake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. #[=======================================================================[.rst: Qt4Macros --------- This file is included by FindQt4.cmake, don't include it directly. #]=======================================================================] ###################################### # # Macros for building Qt files # ###################################### macro (QT4_EXTRACT_OPTIONS _qt4_files _qt4_options _qt4_target) set(${_qt4_files}) set(${_qt4_options}) set(_QT4_DOING_OPTIONS FALSE) set(_QT4_DOING_TARGET FALSE) foreach(_currentArg ${ARGN}) if ("x${_currentArg}" STREQUAL "xOPTIONS") set(_QT4_DOING_OPTIONS TRUE) elseif ("x${_currentArg}" STREQUAL "xTARGET") set(_QT4_DOING_TARGET TRUE) else () if(_QT4_DOING_TARGET) set(${_qt4_target} "${_currentArg}") elseif(_QT4_DOING_OPTIONS) list(APPEND ${_qt4_options} "${_currentArg}") else() list(APPEND ${_qt4_files} "${_currentArg}") endif() endif () endforeach() endmacro () # macro used to create the names of output files preserving relative dirs macro (QT4_MAKE_OUTPUT_FILE infile prefix ext outfile ) string(LENGTH ${CMAKE_CURRENT_BINARY_DIR} _binlength) string(LENGTH ${infile} _infileLength) set(_checkinfile ${CMAKE_CURRENT_SOURCE_DIR}) if(_infileLength GREATER _binlength) string(SUBSTRING "${infile}" 0 ${_binlength} _checkinfile) if(_checkinfile STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") file(RELATIVE_PATH rel ${CMAKE_CURRENT_BINARY_DIR} ${infile}) else() file(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile}) endif() else() file(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile}) endif() if(WIN32 AND rel MATCHES "^([a-zA-Z]):(.*)$") # absolute path set(rel "${CMAKE_MATCH_1}_${CMAKE_MATCH_2}") endif() set(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}") string(REPLACE ".." "__" _outfile ${_outfile}) get_filename_component(outpath ${_outfile} PATH) get_filename_component(_outfile ${_outfile} NAME_WE) file(MAKE_DIRECTORY ${outpath}) set(${outfile} ${outpath}/${prefix}${_outfile}.${ext}) endmacro () macro (QT4_GET_MOC_FLAGS _moc_flags) set(${_moc_flags}) get_directory_property(_inc_DIRS INCLUDE_DIRECTORIES) foreach(_current ${_inc_DIRS}) if("${_current}" MATCHES "\\.framework/?$") string(REGEX REPLACE "/[^/]+\\.framework" "" framework_path "${_current}") set(${_moc_flags} ${${_moc_flags}} "-F${framework_path}") else() set(${_moc_flags} ${${_moc_flags}} "-I${_current}") endif() endforeach() get_directory_property(_defines COMPILE_DEFINITIONS) foreach(_current ${_defines}) set(${_moc_flags} ${${_moc_flags}} "-D${_current}") endforeach() if(Q_WS_WIN) set(${_moc_flags} ${${_moc_flags}} -DWIN32) endif() endmacro() # helper macro to set up a moc rule function (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target) # For Windows, create a parameters file to work around command line length limit # Pass the parameters in a file. Set the working directory to # be that containing the parameters file and reference it by # just the file name. This is necessary because the moc tool on # MinGW builds does not seem to handle spaces in the path to the # file given with the @ syntax. get_filename_component(_moc_outfile_name "${outfile}" NAME) get_filename_component(_moc_outfile_dir "${outfile}" PATH) if(_moc_outfile_dir) set(_moc_working_dir WORKING_DIRECTORY ${_moc_outfile_dir}) endif() set (_moc_parameters_file ${outfile}_parameters) set (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}") string (REPLACE ";" "\n" _moc_parameters "${_moc_parameters}") if(moc_target) set (_moc_parameters_file ${_moc_parameters_file}$<$<BOOL:$<CONFIGURATION>>:_$<CONFIGURATION>>) set(targetincludes "$<TARGET_PROPERTY:${moc_target},INCLUDE_DIRECTORIES>") set(targetdefines "$<TARGET_PROPERTY:${moc_target},COMPILE_DEFINITIONS>") set(targetincludes "$<$<BOOL:${targetincludes}>:-I$<JOIN:${targetincludes},\n-I>\n>") set(targetdefines "$<$<BOOL:${targetdefines}>:-D$<JOIN:${targetdefines},\n-D>\n>") file (GENERATE OUTPUT ${_moc_parameters_file} CONTENT "${targetdefines}${targetincludes}${_moc_parameters}\n" ) set(targetincludes) set(targetdefines) else() set(CMAKE_CONFIGURABLE_FILE_CONTENT "${_moc_parameters}") configure_file("${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in" "${_moc_parameters_file}" @ONLY) endif() set(_moc_extra_parameters_file @${_moc_parameters_file}) add_custom_command(OUTPUT ${outfile} COMMAND Qt4::moc ${_moc_extra_parameters_file} DEPENDS ${infile} ${_moc_parameters_file} ${_moc_working_dir} VERBATIM) endfunction () macro (QT4_GENERATE_MOC infile outfile ) # get include dirs and flags QT4_GET_MOC_FLAGS(moc_flags) get_filename_component(abs_infile ${infile} ABSOLUTE) set(_outfile "${outfile}") if(NOT IS_ABSOLUTE "${outfile}") set(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${outfile}") endif() if (${ARGC} GREATER 3 AND "x${ARGV2}" STREQUAL "xTARGET") set(moc_target ${ARGV3}) endif() QT4_CREATE_MOC_COMMAND(${abs_infile} ${_outfile} "${moc_flags}" "" "${moc_target}") set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOUIC TRUE) # don't run autouic on this file endmacro () # QT4_WRAP_CPP(outfiles inputfile ... ) macro (QT4_WRAP_CPP outfiles ) # get include dirs QT4_GET_MOC_FLAGS(moc_flags) QT4_EXTRACT_OPTIONS(moc_files moc_options moc_target ${ARGN}) foreach (it ${moc_files}) get_filename_component(it ${it} ABSOLUTE) QT4_MAKE_OUTPUT_FILE(${it} moc_ cxx outfile) QT4_CREATE_MOC_COMMAND(${it} ${outfile} "${moc_flags}" "${moc_options}" "${moc_target}") set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOUIC TRUE) # don't run autouic on this file set(${outfiles} ${${outfiles}} ${outfile}) endforeach() endmacro () # QT4_WRAP_UI(outfiles inputfile ... ) macro (QT4_WRAP_UI outfiles ) QT4_EXTRACT_OPTIONS(ui_files ui_options ui_target ${ARGN}) foreach (it ${ui_files}) get_filename_component(outfile ${it} NAME_WE) get_filename_component(infile ${it} ABSOLUTE) set(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h) add_custom_command(OUTPUT ${outfile} COMMAND Qt4::uic ARGS ${ui_options} -o ${outfile} ${infile} MAIN_DEPENDENCY ${infile} VERBATIM) set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOUIC TRUE) # don't run autouic on this file set(${outfiles} ${${outfiles}} ${outfile}) endforeach () endmacro () # QT4_ADD_RESOURCES(outfiles inputfile ... ) macro (QT4_ADD_RESOURCES outfiles ) QT4_EXTRACT_OPTIONS(rcc_files rcc_options rcc_target ${ARGN}) foreach (it ${rcc_files}) get_filename_component(outfilename ${it} NAME_WE) get_filename_component(infile ${it} ABSOLUTE) get_filename_component(rc_path ${infile} PATH) set(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cxx) set(_RC_DEPENDS) if(EXISTS "${infile}") # parse file for dependencies # all files are absolute paths or relative to the location of the qrc file file(READ "${infile}" _RC_FILE_CONTENTS) string(REGEX MATCHALL "<file[^<]+" _RC_FILES "${_RC_FILE_CONTENTS}") foreach(_RC_FILE ${_RC_FILES}) string(REGEX REPLACE "^<file[^>]*>" "" _RC_FILE "${_RC_FILE}") if(NOT IS_ABSOLUTE "${_RC_FILE}") set(_RC_FILE "${rc_path}/${_RC_FILE}") endif() set(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}") endforeach() unset(_RC_FILES) unset(_RC_FILE_CONTENTS) # Since this cmake macro is doing the dependency scanning for these files, # let's make a configured file and add it as a dependency so cmake is run # again when dependencies need to be recomputed. QT4_MAKE_OUTPUT_FILE("${infile}" "" "qrc.depends" out_depends) configure_file("${infile}" "${out_depends}" COPYONLY) else() # The .qrc file does not exist (yet). Let's add a dependency and hope # that it will be generated later set(out_depends) endif() add_custom_command(OUTPUT ${outfile} COMMAND Qt4::rcc ARGS ${rcc_options} -name ${outfilename} -o ${outfile} ${infile} MAIN_DEPENDENCY ${infile} DEPENDS ${_RC_DEPENDS} "${out_depends}" VERBATIM) set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file set_property(SOURCE ${outfile} PROPERTY SKIP_AUTOUIC TRUE) # don't run autouic on this file set(${outfiles} ${${outfiles}} ${outfile}) endforeach () endmacro () macro(QT4_ADD_DBUS_INTERFACE _sources _interface _basename) get_filename_component(_infile ${_interface} ABSOLUTE) set(_header "${CMAKE_CURRENT_BINARY_DIR}/${_basename}.h") set(_impl "${CMAKE_CURRENT_BINARY_DIR}/${_basename}.cpp") set(_moc "${CMAKE_CURRENT_BINARY_DIR}/${_basename}.moc") get_property(_nonamespace SOURCE ${_interface} PROPERTY NO_NAMESPACE) if(_nonamespace) set(_params -N -m) else() set(_params -m) endif() get_property(_classname SOURCE ${_interface} PROPERTY CLASSNAME) if(_classname) set(_params ${_params} -c ${_classname}) endif() get_property(_include SOURCE ${_interface} PROPERTY INCLUDE) if(_include) set(_params ${_params} -i ${_include}) endif() add_custom_command(OUTPUT "${_impl}" "${_header}" COMMAND Qt4::qdbusxml2cpp ${_params} -p ${_basename} ${_infile} DEPENDS ${_infile} VERBATIM) set_property(SOURCE ${_impl} PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file set_property(SOURCE ${_impl} PROPERTY SKIP_AUTOUIC TRUE) # don't run autouic on this file QT4_GENERATE_MOC("${_header}" "${_moc}") list(APPEND ${_sources} "${_impl}" "${_header}" "${_moc}") MACRO_ADD_FILE_DEPENDENCIES("${_impl}" "${_moc}") endmacro() macro(QT4_ADD_DBUS_INTERFACES _sources) foreach (_current_FILE ${ARGN}) get_filename_component(_infile ${_current_FILE} ABSOLUTE) get_filename_component(_basename ${_current_FILE} NAME) # get the part before the ".xml" suffix string(TOLOWER ${_basename} _basename) string(REGEX REPLACE "(.*\\.)?([^\\.]+)\\.xml" "\\2" _basename ${_basename}) QT4_ADD_DBUS_INTERFACE(${_sources} ${_infile} ${_basename}interface) endforeach () endmacro() macro(QT4_GENERATE_DBUS_INTERFACE _header) # _customName OPTIONS -some -options ) QT4_EXTRACT_OPTIONS(_customName _qt4_dbus_options _qt4_dbus_target ${ARGN}) get_filename_component(_in_file ${_header} ABSOLUTE) get_filename_component(_basename ${_header} NAME_WE) if (_customName) if (IS_ABSOLUTE ${_customName}) get_filename_component(_containingDir ${_customName} PATH) if (NOT EXISTS ${_containingDir}) file(MAKE_DIRECTORY "${_containingDir}") endif() set(_target ${_customName}) else() set(_target ${CMAKE_CURRENT_BINARY_DIR}/${_customName}) endif() else () set(_target ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.xml) endif () add_custom_command(OUTPUT ${_target} COMMAND Qt4::qdbuscpp2xml ${_qt4_dbus_options} ${_in_file} -o ${_target} DEPENDS ${_in_file} VERBATIM ) endmacro() macro(QT4_ADD_DBUS_ADAPTOR _sources _xml_file _include _parentClass) # _optionalBasename _optionalClassName) get_filename_component(_infile ${_xml_file} ABSOLUTE) unset(_optionalBasename) if(${ARGC} GREATER 4) set(_optionalBasename "${ARGV4}") endif() if (_optionalBasename) set(_basename ${_optionalBasename} ) else () string(REGEX REPLACE "(.*[/\\.])?([^\\.]+)\\.xml" "\\2adaptor" _basename ${_infile}) string(TOLOWER ${_basename} _basename) endif () unset(_optionalClassName) if(${ARGC} GREATER 5) set(_optionalClassName "${ARGV5}") endif() set(_header "${CMAKE_CURRENT_BINARY_DIR}/${_basename}.h") set(_impl "${CMAKE_CURRENT_BINARY_DIR}/${_basename}.cpp") set(_moc "${CMAKE_CURRENT_BINARY_DIR}/${_basename}.moc") if(_optionalClassName) add_custom_command(OUTPUT "${_impl}" "${_header}" COMMAND Qt4::qdbusxml2cpp -m -a ${_basename} -c ${_optionalClassName} -i ${_include} -l ${_parentClass} ${_infile} DEPENDS ${_infile} VERBATIM ) else() add_custom_command(OUTPUT "${_impl}" "${_header}" COMMAND Qt4::qdbusxml2cpp -m -a ${_basename} -i ${_include} -l ${_parentClass} ${_infile} DEPENDS ${_infile} VERBATIM ) endif() QT4_GENERATE_MOC("${_header}" "${_moc}") set_property(SOURCE ${_impl} PROPERTY SKIP_AUTOMOC TRUE) # don't run automoc on this file set_property(SOURCE ${_impl} PROPERTY SKIP_AUTOUIC TRUE) # don't run autouic on this file MACRO_ADD_FILE_DEPENDENCIES("${_impl}" "${_moc}") list(APPEND ${_sources} "${_impl}" "${_header}" "${_moc}") endmacro() macro(QT4_AUTOMOC) if(NOT CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.11) message(DEPRECATION "The qt4_automoc macro is obsolete. Use the CMAKE_AUTOMOC feature instead.") endif() QT4_GET_MOC_FLAGS(_moc_INCS) set(_matching_FILES ) foreach (_current_FILE ${ARGN}) get_filename_component(_abs_FILE ${_current_FILE} ABSOLUTE) # if "SKIP_AUTOMOC" is set to true, we will not handle this file here. # This is required to make uic work correctly: # we need to add generated .cpp files to the sources (to compile them), # but we cannot let automoc handle them, as the .cpp files don't exist yet when # cmake is run for the very first time on them -> however the .cpp files might # exist at a later run. at that time we need to skip them, so that we don't add two # different rules for the same moc file get_property(_skip SOURCE ${_abs_FILE} PROPERTY SKIP_AUTOMOC) if ( NOT _skip AND EXISTS ${_abs_FILE} ) file(READ ${_abs_FILE} _contents) get_filename_component(_abs_PATH ${_abs_FILE} PATH) string(REGEX MATCHALL "# *include +[^ ]+\\.moc[\">]" _match "${_contents}") if(_match) foreach (_current_MOC_INC ${_match}) string(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}") get_filename_component(_basename ${_current_MOC} NAME_WE) if(EXISTS ${_abs_PATH}/${_basename}.hpp) set(_header ${_abs_PATH}/${_basename}.hpp) else() set(_header ${_abs_PATH}/${_basename}.h) endif() set(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC}) QT4_CREATE_MOC_COMMAND(${_header} ${_moc} "${_moc_INCS}" "" "") MACRO_ADD_FILE_DEPENDENCIES(${_abs_FILE} ${_moc}) endforeach () endif() endif () endforeach () endmacro() macro(QT4_CREATE_TRANSLATION _qm_files) QT4_EXTRACT_OPTIONS(_lupdate_files _lupdate_options _lupdate_target ${ARGN}) set(_my_sources) set(_my_dirs) set(_my_tsfiles) set(_ts_pro) foreach (_file ${_lupdate_files}) get_filename_component(_ext ${_file} EXT) get_filename_component(_abs_FILE ${_file} ABSOLUTE) if(_ext MATCHES "ts") list(APPEND _my_tsfiles ${_abs_FILE}) else() if(NOT _ext) list(APPEND _my_dirs ${_abs_FILE}) else() list(APPEND _my_sources ${_abs_FILE}) endif() endif() endforeach() foreach(_ts_file ${_my_tsfiles}) if(_my_sources) # make a .pro file to call lupdate on, so we don't make our commands too # long for some systems get_filename_component(_ts_name ${_ts_file} NAME) set(_ts_pro ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${_ts_name}_lupdate.pro) set(_pro_srcs) foreach(_pro_src ${_my_sources}) string(APPEND _pro_srcs " \\\n \"${_pro_src}\"") endforeach() set(_pro_includes) get_directory_property(_inc_DIRS INCLUDE_DIRECTORIES) list(REMOVE_DUPLICATES _inc_DIRS) foreach(_pro_include ${_inc_DIRS}) get_filename_component(_abs_include "${_pro_include}" ABSOLUTE) string(APPEND _pro_includes " \\\n \"${_abs_include}\"") endforeach() file(GENERATE OUTPUT ${_ts_pro} CONTENT "SOURCES =${_pro_srcs}\nINCLUDEPATH =${_pro_includes}\n") endif() add_custom_command(OUTPUT ${_ts_file} COMMAND Qt4::lupdate ARGS ${_lupdate_options} ${_ts_pro} ${_my_dirs} -ts ${_ts_file} DEPENDS ${_my_sources} ${_ts_pro} VERBATIM) endforeach() QT4_ADD_TRANSLATION(${_qm_files} ${_my_tsfiles}) endmacro() macro(QT4_ADD_TRANSLATION _qm_files) foreach (_current_FILE ${ARGN}) get_filename_component(_abs_FILE ${_current_FILE} ABSOLUTE) get_filename_component(qm ${_abs_FILE} NAME) # everything before the last dot has to be considered the file name (including other dots) string(REGEX REPLACE "\\.[^.]*$" "" FILE_NAME ${qm}) get_source_file_property(output_location ${_abs_FILE} OUTPUT_LOCATION) if(output_location) file(MAKE_DIRECTORY "${output_location}") set(qm "${output_location}/${FILE_NAME}.qm") else() set(qm "${CMAKE_CURRENT_BINARY_DIR}/${FILE_NAME}.qm") endif() add_custom_command(OUTPUT ${qm} COMMAND Qt4::lrelease ARGS ${_abs_FILE} -qm ${qm} DEPENDS ${_abs_FILE} VERBATIM ) set(${_qm_files} ${${_qm_files}} ${qm}) endforeach () endmacro() function(qt4_use_modules _target _link_type) if(NOT CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.11) message(DEPRECATION "The qt4_use_modules function is obsolete. Use target_link_libraries with IMPORTED targets instead.") endif() if ("${_link_type}" STREQUAL "LINK_PUBLIC" OR "${_link_type}" STREQUAL "LINK_PRIVATE") set(modules ${ARGN}) set(link_type ${_link_type}) else() set(modules ${_link_type} ${ARGN}) endif() foreach(_module ${modules}) string(TOUPPER ${_module} _ucmodule) set(_targetPrefix QT_QT${_ucmodule}) if (_ucmodule STREQUAL QAXCONTAINER OR _ucmodule STREQUAL QAXSERVER) if (NOT QT_Q${_ucmodule}_FOUND) message(FATAL_ERROR "Can not use \"${_module}\" module which has not yet been found.") endif() set(_targetPrefix QT_Q${_ucmodule}) else() if (NOT QT_QT${_ucmodule}_FOUND) message(FATAL_ERROR "Can not use \"${_module}\" module which has not yet been found.") endif() if ("${_ucmodule}" STREQUAL "MAIN") message(FATAL_ERROR "Can not use \"${_module}\" module with qt4_use_modules.") endif() endif() target_link_libraries(${_target} ${link_type} ${${_targetPrefix}_LIBRARIES}) set_property(TARGET ${_target} APPEND PROPERTY INCLUDE_DIRECTORIES ${${_targetPrefix}_INCLUDE_DIR} ${QT_HEADERS_DIR} ${QT_MKSPECS_DIR}/default) set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS ${${_targetPrefix}_COMPILE_DEFINITIONS}) endforeach() endfunction()
Close