Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/cmakeutils.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 40 | { | |||
---|---|---|---|---|---|
96 | KDEVCMAKECOMMON_EXPORT QString projectRootRelative( KDevelop::IProject* project ); | 96 | KDEVCMAKECOMMON_EXPORT QString projectRootRelative( KDevelop::IProject* project ); | ||
97 | 97 | | |||
98 | /** | 98 | /** | ||
99 | * @returns whether there's projectRootRelative defined | 99 | * @returns whether there's projectRootRelative defined | ||
100 | */ | 100 | */ | ||
101 | KDEVCMAKECOMMON_EXPORT bool hasProjectRootRelative( KDevelop::IProject* project ); | 101 | KDEVCMAKECOMMON_EXPORT bool hasProjectRootRelative( KDevelop::IProject* project ); | ||
102 | 102 | | |||
103 | /** | 103 | /** | ||
104 | * Extracts target names from builddir/CMakeFiles/TargetDirectories.txt and maps corresponding source locations to them. | ||||
105 | */ | ||||
106 | | ||||
107 | KDEVCMAKECOMMON_EXPORT QHash<KDevelop::Path, QStringList> enumerateTargets(const KDevelop::Path& targetsFilePath, const QString& sourceDir, const KDevelop::Path &buildDir); | ||||
108 | /** | ||||
104 | * Convenience function to get the project root. | 109 | * Convenience function to get the project root. | ||
105 | */ | 110 | */ | ||
106 | KDEVCMAKECOMMON_EXPORT KDevelop::Path projectRoot( KDevelop::IProject* project ); | 111 | KDEVCMAKECOMMON_EXPORT KDevelop::Path projectRoot( KDevelop::IProject* project ); | ||
107 | 112 | | |||
108 | /** | 113 | /** | ||
109 | * @returns the environment configuration for a @p project | 114 | * @returns the environment configuration for a @p project | ||
110 | */ | 115 | */ | ||
111 | KDEVCMAKECOMMON_EXPORT QString currentEnvironment( KDevelop::IProject* project ); | 116 | KDEVCMAKECOMMON_EXPORT QString currentEnvironment( KDevelop::IProject* project ); | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |