diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-01 13:18:50 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-01 13:18:50 (GMT) |
commit | f7f522e61a32c93c86ee455d8c465d8e7e52ae5a (patch) | |
tree | f8808c7b68ee0ad42e5e465f419d1becd9940348 /Source/cmake.cxx | |
parent | 21f73ebc363a6819ed387c6e5c2fd784db81014a (diff) | |
download | CMake-f7f522e61a32c93c86ee455d8c465d8e7e52ae5a.zip CMake-f7f522e61a32c93c86ee455d8c465d8e7e52ae5a.tar.gz CMake-f7f522e61a32c93c86ee455d8c465d8e7e52ae5a.tar.bz2 |
ENH: add Eclipse CDT4 generator, patch from Miguel A. Figueroa-Villanueva
Alex
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index ea1e8b7..85a1127 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -47,6 +47,10 @@ # endif #endif +#if defined(CMAKE_BUILD_WITH_CMAKE) +# define CMAKE_USE_ECLIPSE +#endif + #if defined(__MINGW32__) && !defined(CMAKE_BUILD_WITH_CMAKE) # define CMAKE_BOOT_MINGW #endif @@ -78,6 +82,10 @@ # include "cmGlobalKdevelopGenerator.h" #endif +#ifdef CMAKE_USE_ECLIPSE +# include "cmExtraEclipseCDT4Generator.h" +#endif + #include <stdlib.h> // required for atoi #if defined( __APPLE__ ) @@ -1523,6 +1531,11 @@ void cmake::AddDefaultExtraGenerators() &cmExtraCodeBlocksGenerator::New); #endif +#ifdef CMAKE_USE_ECLIPSE + this->AddExtraGenerator(cmExtraEclipseCDT4Generator::GetActualName(), + &cmExtraEclipseCDT4Generator::New); +#endif + #ifdef CMAKE_USE_KDEVELOP this->AddExtraGenerator(cmGlobalKdevelopGenerator::GetActualName(), &cmGlobalKdevelopGenerator::New); |