diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-09-16 22:01:23 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-09-16 22:01:23 (GMT) |
commit | 298de4374b99a98dd336620d6d049c725e48faf8 (patch) | |
tree | 2234e26d10b89df1af80d5ce8df9b45f99c1381a /Source/cmExtraEclipseCDT4Generator.h | |
parent | 229b67a2499586a9aaf54d3d5a88fee7a3f37e2c (diff) | |
download | CMake-298de4374b99a98dd336620d6d049c725e48faf8.zip CMake-298de4374b99a98dd336620d6d049c725e48faf8.tar.gz CMake-298de4374b99a98dd336620d6d049c725e48faf8.tar.bz2 |
Major improvement of the generated targets in Eclipse.
Before this change all targets were displayed in the top level directory of
the project. Now the targets are displayed in the correct directory.
The targets "clean" and "all" are now created in every subdirectory.
Also now the targets for just compiling one file, preprocessing one file,
assembling one file are are created for Eclipse.
Additionally all targets get a prefix now in eclipse, so that they are
sorted in a way which makes sense (global targets first, then executable and
libraries, then object files, then preprocessed, then assembly). Also
this prefix gives the user a hint what the target is, i.e. whether it's a
library or an executable or something else.
Alex
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.h')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.h b/Source/cmExtraEclipseCDT4Generator.h index cb4226e..5004ca7 100644 --- a/Source/cmExtraEclipseCDT4Generator.h +++ b/Source/cmExtraEclipseCDT4Generator.h @@ -91,7 +91,9 @@ private: const cmMakefile& makefile); static void AppendTarget (cmGeneratedFileStream& fout, const std::string& target, - const std::string& make); + const std::string& make, + const std::string& path, + const char* prefix = ""); static void AppendScannerProfile (cmGeneratedFileStream& fout, const std::string& profileID, bool openActionEnabled, |