2002-01-21 20:30:43 +00:00
|
|
|
/*=========================================================================
|
|
|
|
|
2002-10-23 22:03:27 +00:00
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
2002-01-21 20:30:43 +00:00
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
2002-10-23 22:03:27 +00:00
|
|
|
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
2002-01-21 20:30:43 +00:00
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE. See the above copyright notices for more information.
|
|
|
|
|
|
|
|
=========================================================================*/
|
2001-02-13 00:49:52 +00:00
|
|
|
#include "cmCommands.h"
|
2003-04-16 20:17:02 +00:00
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
|
|
|
#include "cmAuxSourceDirectoryCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmBuildNameCommand.cxx"
|
2006-12-07 14:45:32 +00:00
|
|
|
#include "cmDefinePropertyCommand.cxx"
|
2006-09-22 15:23:51 +00:00
|
|
|
#include "cmElseIfCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmEnableLanguageCommand.cxx"
|
2006-10-03 18:40:22 +00:00
|
|
|
#include "cmEndMacroCommand.cxx"
|
2005-01-21 14:38:04 +00:00
|
|
|
#include "cmEndWhileCommand.cxx"
|
2006-02-03 21:51:46 +00:00
|
|
|
#include "cmExecuteProcessCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmExportLibraryDependencies.cxx"
|
|
|
|
#include "cmFLTKWrapUICommand.cxx"
|
2004-04-23 20:20:36 +00:00
|
|
|
#include "cmGetDirectoryPropertyCommand.cxx"
|
2005-07-31 15:51:42 +00:00
|
|
|
#include "cmGetTestPropertyCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmIncludeExternalMSProjectCommand.cxx"
|
2006-02-10 18:54:36 +00:00
|
|
|
#include "cmInstallCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmInstallProgramsCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmLinkLibrariesCommand.cxx"
|
2006-02-10 19:11:12 +00:00
|
|
|
#include "cmListCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmLoadCacheCommand.cxx"
|
2005-10-17 20:42:47 +00:00
|
|
|
#include "cmMathCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmOutputRequiredFilesCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmQTWrapCPPCommand.cxx"
|
|
|
|
#include "cmQTWrapUICommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmRemoveCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmRemoveDefinitionsCommand.cxx"
|
|
|
|
#include "cmSeparateArgumentsCommand.cxx"
|
2004-04-23 20:20:36 +00:00
|
|
|
#include "cmSetDirectoryPropertiesCommand.cxx"
|
2006-12-07 14:45:32 +00:00
|
|
|
#include "cmSetPropertiesCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmSetTargetPropertiesCommand.cxx"
|
2005-07-31 15:51:42 +00:00
|
|
|
#include "cmSetTestsPropertiesCommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmSourceGroupCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmSubdirDependsCommand.cxx"
|
|
|
|
#include "cmUseMangledMesaCommand.cxx"
|
|
|
|
#include "cmUtilitySourceCommand.cxx"
|
|
|
|
#include "cmVariableRequiresCommand.cxx"
|
2007-04-11 19:13:05 +00:00
|
|
|
#include "cmVariableWatchCommand.cxx"
|
|
|
|
|
2005-01-21 14:38:04 +00:00
|
|
|
#include "cmWhileCommand.cxx"
|
2006-03-22 16:15:35 +00:00
|
|
|
#include "cmWriteFileCommand.cxx"
|
2003-04-17 12:03:55 +00:00
|
|
|
|
|
|
|
// This one must be last because it includes windows.h and
|
|
|
|
// windows.h #defines GetCurrentDirectory which is a member
|
|
|
|
// of cmMakefile
|
|
|
|
#include "cmLoadCommandCommand.cxx"
|
2002-08-27 12:36:03 +00:00
|
|
|
#endif
|
2002-08-26 14:52:04 +00:00
|
|
|
|
2005-02-24 15:14:56 +00:00
|
|
|
void GetPredefinedCommands(std::list<cmCommand*>&
|
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
|
|
|
commands
|
|
|
|
#endif
|
|
|
|
)
|
2001-02-13 00:49:52 +00:00
|
|
|
{
|
2003-04-16 20:17:02 +00:00
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
|
|
|
commands.push_back(new cmAuxSourceDirectoryCommand);
|
2006-03-22 16:15:35 +00:00
|
|
|
commands.push_back(new cmBuildNameCommand);
|
2006-12-07 14:45:32 +00:00
|
|
|
commands.push_back(new cmDefinePropertyCommand);
|
2006-09-22 15:23:51 +00:00
|
|
|
commands.push_back(new cmElseIfCommand);
|
2004-09-22 18:42:05 +00:00
|
|
|
commands.push_back(new cmEnableLanguageCommand);
|
2006-10-03 18:40:22 +00:00
|
|
|
commands.push_back(new cmEndMacroCommand);
|
2005-01-21 14:38:04 +00:00
|
|
|
commands.push_back(new cmEndWhileCommand);
|
2006-02-03 21:51:46 +00:00
|
|
|
commands.push_back(new cmExecuteProcessCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmExportLibraryDependenciesCommand);
|
|
|
|
commands.push_back(new cmFLTKWrapUICommand);
|
2004-04-23 20:20:36 +00:00
|
|
|
commands.push_back(new cmGetDirectoryPropertyCommand);
|
2005-07-31 15:51:42 +00:00
|
|
|
commands.push_back(new cmGetTestPropertyCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmIncludeExternalMSProjectCommand);
|
2006-02-10 18:54:36 +00:00
|
|
|
commands.push_back(new cmInstallCommand);
|
2006-03-22 16:15:35 +00:00
|
|
|
commands.push_back(new cmInstallProgramsCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmLinkLibrariesCommand);
|
2006-02-10 19:11:12 +00:00
|
|
|
commands.push_back(new cmListCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmLoadCacheCommand);
|
|
|
|
commands.push_back(new cmLoadCommandCommand);
|
2005-10-17 20:42:47 +00:00
|
|
|
commands.push_back(new cmMathCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmOutputRequiredFilesCommand);
|
2006-03-22 16:15:35 +00:00
|
|
|
commands.push_back(new cmQTWrapCPPCommand);
|
|
|
|
commands.push_back(new cmQTWrapUICommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmRemoveCommand);
|
2006-03-22 16:15:35 +00:00
|
|
|
commands.push_back(new cmRemoveDefinitionsCommand);
|
|
|
|
commands.push_back(new cmSeparateArgumentsCommand);
|
2004-04-23 20:20:36 +00:00
|
|
|
commands.push_back(new cmSetDirectoryPropertiesCommand);
|
2006-12-07 14:45:32 +00:00
|
|
|
commands.push_back(new cmSetPropertiesCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmSetTargetPropertiesCommand);
|
2005-07-31 15:51:42 +00:00
|
|
|
commands.push_back(new cmSetTestsPropertiesCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmSourceGroupCommand);
|
2006-03-22 16:15:35 +00:00
|
|
|
commands.push_back(new cmSubdirDependsCommand);
|
|
|
|
commands.push_back(new cmUseMangledMesaCommand);
|
|
|
|
commands.push_back(new cmUtilitySourceCommand);
|
|
|
|
commands.push_back(new cmVariableRequiresCommand);
|
2007-04-11 19:13:05 +00:00
|
|
|
commands.push_back(new cmVariableWatchCommand);
|
2005-01-21 14:38:04 +00:00
|
|
|
commands.push_back(new cmWhileCommand);
|
2006-03-22 16:15:35 +00:00
|
|
|
commands.push_back(new cmWriteFileCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
#endif
|
2001-02-13 00:49:52 +00:00
|
|
|
}
|