2002-01-21 23:30:43 +03:00
|
|
|
/*=========================================================================
|
|
|
|
|
2002-10-24 02:03:27 +04:00
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
2002-01-21 23:30:43 +03:00
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
2002-10-24 02:03:27 +04: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 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.
|
|
|
|
|
|
|
|
=========================================================================*/
|
2001-02-13 03:49:52 +03:00
|
|
|
// This file is used to compile all the commands
|
|
|
|
// that CMake knows about at compile time.
|
|
|
|
// This is sort of a boot strapping approach since you would
|
|
|
|
// like to have CMake to build CMake.
|
|
|
|
#include "cmCommands.h"
|
2003-07-22 00:38:53 +04:00
|
|
|
#include "cmAddCustomCommandCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmAddCustomTargetCommand.cxx"
|
|
|
|
#include "cmAddDefinitionsCommand.cxx"
|
2003-07-08 06:41:27 +04:00
|
|
|
#include "cmAddDependenciesCommand.cxx"
|
2001-04-11 22:59:02 +04:00
|
|
|
#include "cmAddExecutableCommand.cxx"
|
|
|
|
#include "cmAddLibraryCommand.cxx"
|
2001-06-06 04:34:57 +04:00
|
|
|
#include "cmAddTestCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmBuildCommand.cxx"
|
|
|
|
#include "cmBuildNameCommand.cxx"
|
2002-04-18 00:16:06 +04:00
|
|
|
#include "cmCMakeMinimumRequired.cxx"
|
2001-05-08 02:11:16 +04:00
|
|
|
#include "cmConfigureFileCommand.cxx"
|
2002-03-21 00:19:00 +03:00
|
|
|
#include "cmCreateTestSourceList.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmElseCommand.cxx"
|
2001-06-06 21:58:18 +04:00
|
|
|
#include "cmEnableTestingCommand.cxx"
|
2001-07-26 00:53:13 +04:00
|
|
|
#include "cmEndForEachCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmEndIfCommand.cxx"
|
2001-05-08 02:11:16 +04:00
|
|
|
#include "cmExecProgramCommand.cxx"
|
2003-07-08 01:47:17 +04:00
|
|
|
#include "cmFileCommand.cxx"
|
2001-02-27 01:17:34 +03:00
|
|
|
#include "cmFindFileCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmFindLibraryCommand.cxx"
|
2003-01-22 01:15:22 +03:00
|
|
|
#include "cmFindPackageCommand.cxx"
|
2001-04-26 17:38:31 +04:00
|
|
|
#include "cmFindPathCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmFindProgramCommand.cxx"
|
2001-07-26 00:53:13 +04:00
|
|
|
#include "cmForEachCommand.cxx"
|
2001-05-25 05:13:56 +04:00
|
|
|
#include "cmGetFilenameComponentCommand.cxx"
|
2004-06-14 19:23:31 +04:00
|
|
|
#include "cmGetSourceFilePropertyCommand.cxx"
|
2001-04-20 01:39:03 +04:00
|
|
|
#include "cmIfCommand.cxx"
|
2001-04-30 18:52:58 +04:00
|
|
|
#include "cmIncludeCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmIncludeDirectoryCommand.cxx"
|
|
|
|
#include "cmIncludeRegularExpressionCommand.cxx"
|
2001-05-23 19:31:43 +04:00
|
|
|
#include "cmInstallFilesCommand.cxx"
|
2001-07-31 19:29:21 +04:00
|
|
|
#include "cmInstallProgramsCommand.cxx"
|
2001-05-23 19:31:43 +04:00
|
|
|
#include "cmInstallTargetsCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmLinkDirectoriesCommand.cxx"
|
2002-08-13 23:46:33 +04:00
|
|
|
#include "cmMacroCommand.cxx"
|
2001-05-08 02:11:16 +04:00
|
|
|
#include "cmMakeDirectoryCommand.cxx"
|
2001-11-27 02:28:27 +03:00
|
|
|
#include "cmMarkAsAdvancedCommand.cxx"
|
2001-06-05 01:16:36 +04:00
|
|
|
#include "cmMessageCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmOptionCommand.cxx"
|
|
|
|
#include "cmProjectCommand.cxx"
|
2004-04-15 21:58:10 +04:00
|
|
|
#include "cmRemoveDefinitionsCommand.cxx"
|
2003-08-12 01:34:44 +04:00
|
|
|
#include "cmSeparateArgumentsCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmSetCommand.cxx"
|
2003-04-25 22:51:23 +04:00
|
|
|
#include "cmSetSourceFilesPropertiesCommand.cxx"
|
2001-05-04 19:30:46 +04:00
|
|
|
#include "cmSiteNameCommand.cxx"
|
2002-11-07 01:35:27 +03:00
|
|
|
#include "cmStringCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmSubdirCommand.cxx"
|
2001-08-02 00:14:16 +04:00
|
|
|
#include "cmSubdirDependsCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmTargetLinkLibrariesCommand.cxx"
|
2002-08-28 22:51:10 +04:00
|
|
|
#include "cmTryCompileCommand.cxx"
|
2002-09-19 17:49:14 +04:00
|
|
|
#include "cmTryRunCommand.cxx"
|
2001-11-20 01:52:08 +03:00
|
|
|
#include "cmVariableRequiresCommand.cxx"
|
2003-04-17 00:17:02 +04:00
|
|
|
#include "cmWriteFileCommand.cxx"
|
|
|
|
|
|
|
|
// on regular builds add in these extra commands we do not add it in on the
|
|
|
|
// bootstrap because they are not needed and may require dynaic loading
|
|
|
|
// support etc, which makes the bootstrap configure file a mess
|
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
|
|
|
#include "cmAbstractFilesCommand.cxx"
|
|
|
|
#include "cmAuxSourceDirectoryCommand.cxx"
|
|
|
|
#include "cmExportLibraryDependencies.cxx"
|
2004-09-22 22:42:05 +04:00
|
|
|
#include "cmEnableLanguageCommand.cxx"
|
2003-04-17 00:17:02 +04:00
|
|
|
#include "cmFLTKWrapUICommand.cxx"
|
|
|
|
#include "cmGetCMakePropertyCommand.cxx"
|
2004-04-24 00:20:36 +04:00
|
|
|
#include "cmGetDirectoryPropertyCommand.cxx"
|
2003-04-17 00:17:02 +04:00
|
|
|
#include "cmGetTargetPropertyCommand.cxx"
|
|
|
|
#include "cmITKWrapTclCommand.cxx"
|
|
|
|
#include "cmIncludeExternalMSProjectCommand.cxx"
|
|
|
|
#include "cmLinkLibrariesCommand.cxx"
|
|
|
|
#include "cmLoadCacheCommand.cxx"
|
|
|
|
#include "cmOutputRequiredFilesCommand.cxx"
|
|
|
|
#include "cmRemoveCommand.cxx"
|
2004-04-24 00:20:36 +04:00
|
|
|
#include "cmSetDirectoryPropertiesCommand.cxx"
|
2003-04-17 00:17:02 +04:00
|
|
|
#include "cmSetTargetPropertiesCommand.cxx"
|
|
|
|
#include "cmSourceFilesCommand.cxx"
|
|
|
|
#include "cmSourceFilesRemoveCommand.cxx"
|
|
|
|
#include "cmSourceGroupCommand.cxx"
|
2002-04-22 19:50:43 +04:00
|
|
|
#include "cmVTKMakeInstantiatorCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmVTKWrapJavaCommand.cxx"
|
|
|
|
#include "cmVTKWrapPythonCommand.cxx"
|
|
|
|
#include "cmVTKWrapTclCommand.cxx"
|
2001-10-15 22:19:53 +04:00
|
|
|
#include "cmQTWrapCPPCommand.cxx"
|
2001-11-09 20:03:41 +03:00
|
|
|
#include "cmQTWrapUICommand.cxx"
|
2003-04-17 00:17:02 +04:00
|
|
|
#include "cmUseMangledMesaCommand.cxx"
|
|
|
|
#include "cmUtilitySourceCommand.cxx"
|
2001-05-05 19:03:35 +04:00
|
|
|
#include "cmWrapExcludeFilesCommand.cxx"
|
2003-04-17 16:03:55 +04: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 16:36:03 +04:00
|
|
|
#endif
|
2002-08-26 18:52:04 +04:00
|
|
|
|
2001-02-13 03:49:52 +03:00
|
|
|
void GetPredefinedCommands(std::list<cmCommand*>& commands)
|
|
|
|
{
|
2003-07-22 00:38:53 +04:00
|
|
|
commands.push_back(new cmAddCustomCommandCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmAddCustomTargetCommand);
|
|
|
|
commands.push_back(new cmAddDefinitionsCommand);
|
2003-07-08 06:41:27 +04:00
|
|
|
commands.push_back(new cmAddDependenciesCommand);
|
2001-04-11 22:59:02 +04:00
|
|
|
commands.push_back(new cmAddExecutableCommand);
|
|
|
|
commands.push_back(new cmAddLibraryCommand);
|
2001-06-06 04:34:57 +04:00
|
|
|
commands.push_back(new cmAddTestCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmBuildCommand);
|
|
|
|
commands.push_back(new cmBuildNameCommand);
|
2002-04-18 00:16:06 +04:00
|
|
|
commands.push_back(new cmCMakeMinimumRequired);
|
2001-05-08 02:11:16 +04:00
|
|
|
commands.push_back(new cmConfigureFileCommand);
|
2002-03-21 00:19:00 +03:00
|
|
|
commands.push_back(new cmCreateTestSourceList);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmElseCommand);
|
2001-06-06 21:58:18 +04:00
|
|
|
commands.push_back(new cmEnableTestingCommand);
|
2001-07-26 00:53:13 +04:00
|
|
|
commands.push_back(new cmEndForEachCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmEndIfCommand);
|
2001-05-08 02:11:16 +04:00
|
|
|
commands.push_back(new cmExecProgramCommand);
|
2003-07-08 01:47:17 +04:00
|
|
|
commands.push_back(new cmFileCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmFindFileCommand);
|
2001-02-13 03:49:52 +03:00
|
|
|
commands.push_back(new cmFindLibraryCommand);
|
2003-01-22 01:15:22 +03:00
|
|
|
commands.push_back(new cmFindPackageCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmFindPathCommand);
|
2001-02-13 03:49:52 +03:00
|
|
|
commands.push_back(new cmFindProgramCommand);
|
2001-07-26 00:53:13 +04:00
|
|
|
commands.push_back(new cmForEachCommand);
|
2001-05-25 05:13:56 +04:00
|
|
|
commands.push_back(new cmGetFilenameComponentCommand);
|
2004-06-14 19:23:31 +04:00
|
|
|
commands.push_back(new cmGetSourceFilePropertyCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmIfCommand);
|
|
|
|
commands.push_back(new cmIncludeCommand);
|
2001-02-13 03:49:52 +03:00
|
|
|
commands.push_back(new cmIncludeDirectoryCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmIncludeRegularExpressionCommand);
|
2001-05-23 19:31:43 +04:00
|
|
|
commands.push_back(new cmInstallFilesCommand);
|
2001-07-31 19:29:21 +04:00
|
|
|
commands.push_back(new cmInstallProgramsCommand);
|
2001-05-23 19:31:43 +04:00
|
|
|
commands.push_back(new cmInstallTargetsCommand);
|
2001-02-13 03:49:52 +03:00
|
|
|
commands.push_back(new cmLinkDirectoriesCommand);
|
2002-08-13 23:46:33 +04:00
|
|
|
commands.push_back(new cmMacroCommand);
|
2001-05-08 02:11:16 +04:00
|
|
|
commands.push_back(new cmMakeDirectoryCommand);
|
2001-11-27 02:28:27 +03:00
|
|
|
commands.push_back(new cmMarkAsAdvancedCommand);
|
2001-06-05 01:16:36 +04:00
|
|
|
commands.push_back(new cmMessageCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmOptionCommand);
|
2001-02-13 03:49:52 +03:00
|
|
|
commands.push_back(new cmProjectCommand);
|
2004-04-15 21:58:10 +04:00
|
|
|
commands.push_back(new cmRemoveDefinitionsCommand);
|
2003-08-12 01:34:44 +04:00
|
|
|
commands.push_back(new cmSeparateArgumentsCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmSetCommand);
|
2003-04-25 22:51:23 +04:00
|
|
|
commands.push_back(new cmSetSourceFilesPropertiesCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmSiteNameCommand);
|
2002-11-07 01:35:27 +03:00
|
|
|
commands.push_back(new cmStringCommand);
|
2001-02-13 03:49:52 +03:00
|
|
|
commands.push_back(new cmSubdirCommand);
|
2001-08-02 00:14:16 +04:00
|
|
|
commands.push_back(new cmSubdirDependsCommand);
|
2001-05-05 19:03:35 +04:00
|
|
|
commands.push_back(new cmTargetLinkLibrariesCommand);
|
2002-08-28 22:51:10 +04:00
|
|
|
commands.push_back(new cmTryCompileCommand);
|
2002-09-19 17:49:14 +04:00
|
|
|
commands.push_back(new cmTryRunCommand);
|
2001-11-20 01:52:08 +03:00
|
|
|
commands.push_back(new cmVariableRequiresCommand);
|
2003-04-17 00:17:02 +04:00
|
|
|
commands.push_back(new cmWriteFileCommand);
|
|
|
|
|
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
|
|
|
commands.push_back(new cmAbstractFilesCommand);
|
|
|
|
commands.push_back(new cmAuxSourceDirectoryCommand);
|
2004-09-22 22:42:05 +04:00
|
|
|
commands.push_back(new cmEnableLanguageCommand);
|
2003-04-17 00:17:02 +04:00
|
|
|
commands.push_back(new cmExportLibraryDependenciesCommand);
|
|
|
|
commands.push_back(new cmFLTKWrapUICommand);
|
|
|
|
commands.push_back(new cmGetCMakePropertyCommand);
|
2004-04-24 00:20:36 +04:00
|
|
|
commands.push_back(new cmGetDirectoryPropertyCommand);
|
2003-04-17 00:17:02 +04:00
|
|
|
commands.push_back(new cmGetTargetPropertyCommand);
|
|
|
|
commands.push_back(new cmITKWrapTclCommand);
|
|
|
|
commands.push_back(new cmIncludeExternalMSProjectCommand);
|
|
|
|
commands.push_back(new cmLinkLibrariesCommand);
|
|
|
|
commands.push_back(new cmLoadCacheCommand);
|
|
|
|
commands.push_back(new cmLoadCommandCommand);
|
|
|
|
commands.push_back(new cmOutputRequiredFilesCommand);
|
|
|
|
commands.push_back(new cmRemoveCommand);
|
2004-04-24 00:20:36 +04:00
|
|
|
commands.push_back(new cmSetDirectoryPropertiesCommand);
|
2003-04-17 00:17:02 +04:00
|
|
|
commands.push_back(new cmSetTargetPropertiesCommand);
|
|
|
|
commands.push_back(new cmSourceFilesCommand);
|
|
|
|
commands.push_back(new cmSourceFilesRemoveCommand);
|
|
|
|
commands.push_back(new cmSourceGroupCommand);
|
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);
|
2001-10-15 22:19:53 +04:00
|
|
|
commands.push_back(new cmQTWrapCPPCommand);
|
2001-11-09 20:03:41 +03:00
|
|
|
commands.push_back(new cmQTWrapUICommand);
|
2003-04-17 00:17:02 +04:00
|
|
|
commands.push_back(new cmUseMangledMesaCommand);
|
|
|
|
commands.push_back(new cmUtilitySourceCommand);
|
2001-05-09 16:51:54 +04:00
|
|
|
commands.push_back(new cmWrapExcludeFilesCommand);
|
2003-04-17 00:17:02 +04:00
|
|
|
#endif
|
2001-02-13 03:49:52 +03:00
|
|
|
}
|