CMake/Source/cmCommands.cxx

118 lines
4.6 KiB
C++
Raw Normal View History

2002-01-21 23:30:43 +03:00
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
2002-01-21 23:30:43 +03:00
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
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 23:30:43 +03: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.
=========================================================================*/
#include "cmCommands.h"
2003-04-17 00:17:02 +04:00
#if defined(CMAKE_BUILD_WITH_CMAKE)
2006-03-22 19:15:35 +03:00
#include "cmAddSubDirectoryCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmAuxSourceDirectoryCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmBuildNameCommand.cxx"
#include "cmCreateTestSourceList.cxx"
2006-09-22 19:23:51 +04:00
#include "cmElseIfCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmEnableLanguageCommand.cxx"
2006-10-03 22:40:22 +04:00
#include "cmEndMacroCommand.cxx"
2005-01-21 17:38:04 +03:00
#include "cmEndWhileCommand.cxx"
#include "cmExecuteProcessCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmExportLibraryDependencies.cxx"
#include "cmFLTKWrapUICommand.cxx"
#include "cmGetDirectoryPropertyCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmGetTargetPropertyCommand.cxx"
#include "cmGetTestPropertyCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmIncludeExternalMSProjectCommand.cxx"
#include "cmInstallCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmInstallProgramsCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmLinkLibrariesCommand.cxx"
#include "cmListCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmLoadCacheCommand.cxx"
#include "cmMathCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmOutputRequiredFilesCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmQTWrapCPPCommand.cxx"
#include "cmQTWrapUICommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmRemoveCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmRemoveDefinitionsCommand.cxx"
#include "cmSeparateArgumentsCommand.cxx"
#include "cmSetDirectoryPropertiesCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmSetTargetPropertiesCommand.cxx"
#include "cmSetTestsPropertiesCommand.cxx"
2003-04-17 00:17:02 +04:00
#include "cmSourceGroupCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmSubdirDependsCommand.cxx"
#include "cmUseMangledMesaCommand.cxx"
#include "cmUtilitySourceCommand.cxx"
2002-04-22 19:50:43 +04:00
#include "cmVTKMakeInstantiatorCommand.cxx"
#include "cmVTKWrapJavaCommand.cxx"
#include "cmVTKWrapPythonCommand.cxx"
#include "cmVTKWrapTclCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmVariableRequiresCommand.cxx"
2005-01-21 17:38:04 +03:00
#include "cmWhileCommand.cxx"
2006-03-22 19:15:35 +03:00
#include "cmWriteFileCommand.cxx"
// This one must be last because it includes windows.h and
// windows.h #defines GetCurrentDirectory which is a member
// of cmMakefile
#include "cmLoadCommandCommand.cxx"
#endif
2002-08-26 18:52:04 +04:00
void GetPredefinedCommands(std::list<cmCommand*>&
#if defined(CMAKE_BUILD_WITH_CMAKE)
commands
#endif
)
{
2003-04-17 00:17:02 +04:00
#if defined(CMAKE_BUILD_WITH_CMAKE)
2006-03-22 19:15:35 +03:00
commands.push_back(new cmAddSubDirectoryCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmAuxSourceDirectoryCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmBuildNameCommand);
commands.push_back(new cmCreateTestSourceList);
2006-09-22 19:23:51 +04:00
commands.push_back(new cmElseIfCommand);
commands.push_back(new cmEnableLanguageCommand);
2006-10-03 22:40:22 +04:00
commands.push_back(new cmEndMacroCommand);
2005-01-21 17:38:04 +03:00
commands.push_back(new cmEndWhileCommand);
commands.push_back(new cmExecuteProcessCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmExportLibraryDependenciesCommand);
commands.push_back(new cmFLTKWrapUICommand);
commands.push_back(new cmGetDirectoryPropertyCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmGetTargetPropertyCommand);
commands.push_back(new cmGetTestPropertyCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmIncludeExternalMSProjectCommand);
commands.push_back(new cmInstallCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmInstallProgramsCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmLinkLibrariesCommand);
commands.push_back(new cmListCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmLoadCacheCommand);
commands.push_back(new cmLoadCommandCommand);
commands.push_back(new cmMathCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmOutputRequiredFilesCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmQTWrapCPPCommand);
commands.push_back(new cmQTWrapUICommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmRemoveCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmRemoveDefinitionsCommand);
commands.push_back(new cmSeparateArgumentsCommand);
commands.push_back(new cmSetDirectoryPropertiesCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmSetTargetPropertiesCommand);
commands.push_back(new cmSetTestsPropertiesCommand);
2003-04-17 00:17:02 +04:00
commands.push_back(new cmSourceGroupCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmSubdirDependsCommand);
commands.push_back(new cmUseMangledMesaCommand);
commands.push_back(new cmUtilitySourceCommand);
2002-04-22 19:50:43 +04:00
commands.push_back(new cmVTKMakeInstantiatorCommand);
2001-05-03 23:28:06 +04:00
commands.push_back(new cmVTKWrapJavaCommand);
2001-04-25 00:49:12 +04:00
commands.push_back(new cmVTKWrapPythonCommand);
commands.push_back(new cmVTKWrapTclCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmVariableRequiresCommand);
2005-01-21 17:38:04 +03:00
commands.push_back(new cmWhileCommand);
2006-03-22 19:15:35 +03:00
commands.push_back(new cmWriteFileCommand);
2003-04-17 00:17:02 +04:00
#endif
}