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
|
|
|
// 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-21 20:38:53 +00:00
|
|
|
#include "cmAddCustomCommandCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmAddCustomTargetCommand.cxx"
|
|
|
|
#include "cmAddDefinitionsCommand.cxx"
|
2003-07-08 02:41:27 +00:00
|
|
|
#include "cmAddDependenciesCommand.cxx"
|
2001-04-11 18:59:02 +00:00
|
|
|
#include "cmAddExecutableCommand.cxx"
|
|
|
|
#include "cmAddLibraryCommand.cxx"
|
2001-06-06 00:34:57 +00:00
|
|
|
#include "cmAddTestCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmBuildCommand.cxx"
|
|
|
|
#include "cmBuildNameCommand.cxx"
|
2002-04-17 20:16:06 +00:00
|
|
|
#include "cmCMakeMinimumRequired.cxx"
|
2001-05-07 22:11:16 +00:00
|
|
|
#include "cmConfigureFileCommand.cxx"
|
2002-03-20 21:19:00 +00:00
|
|
|
#include "cmCreateTestSourceList.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmElseCommand.cxx"
|
2001-06-06 17:58:18 +00:00
|
|
|
#include "cmEnableTestingCommand.cxx"
|
2001-07-25 20:53:13 +00:00
|
|
|
#include "cmEndForEachCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmEndIfCommand.cxx"
|
2001-05-07 22:11:16 +00:00
|
|
|
#include "cmExecProgramCommand.cxx"
|
2003-07-07 21:47:17 +00:00
|
|
|
#include "cmFileCommand.cxx"
|
2001-02-26 22:17:34 +00:00
|
|
|
#include "cmFindFileCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmFindLibraryCommand.cxx"
|
2003-01-21 22:15:22 +00:00
|
|
|
#include "cmFindPackageCommand.cxx"
|
2001-04-26 13:38:31 +00:00
|
|
|
#include "cmFindPathCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmFindProgramCommand.cxx"
|
2001-07-25 20:53:13 +00:00
|
|
|
#include "cmForEachCommand.cxx"
|
2001-05-25 01:13:56 +00:00
|
|
|
#include "cmGetFilenameComponentCommand.cxx"
|
2001-04-19 21:39:03 +00:00
|
|
|
#include "cmIfCommand.cxx"
|
2001-04-30 14:52:58 +00:00
|
|
|
#include "cmIncludeCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmIncludeDirectoryCommand.cxx"
|
|
|
|
#include "cmIncludeRegularExpressionCommand.cxx"
|
2001-05-23 15:31:43 +00:00
|
|
|
#include "cmInstallFilesCommand.cxx"
|
2001-07-31 15:29:21 +00:00
|
|
|
#include "cmInstallProgramsCommand.cxx"
|
2001-05-23 15:31:43 +00:00
|
|
|
#include "cmInstallTargetsCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmLinkDirectoriesCommand.cxx"
|
2002-08-13 19:46:33 +00:00
|
|
|
#include "cmMacroCommand.cxx"
|
2001-05-07 22:11:16 +00:00
|
|
|
#include "cmMakeDirectoryCommand.cxx"
|
2001-11-26 23:28:27 +00:00
|
|
|
#include "cmMarkAsAdvancedCommand.cxx"
|
2001-06-04 21:16:36 +00:00
|
|
|
#include "cmMessageCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmOptionCommand.cxx"
|
|
|
|
#include "cmProjectCommand.cxx"
|
|
|
|
#include "cmSetCommand.cxx"
|
2003-04-25 18:51:23 +00:00
|
|
|
#include "cmSetSourceFilesPropertiesCommand.cxx"
|
2001-05-04 15:30:46 +00:00
|
|
|
#include "cmSiteNameCommand.cxx"
|
2002-11-06 22:35:27 +00:00
|
|
|
#include "cmStringCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmSubdirCommand.cxx"
|
2001-08-01 20:14:16 +00:00
|
|
|
#include "cmSubdirDependsCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmTargetLinkLibrariesCommand.cxx"
|
2002-08-28 18:51:10 +00:00
|
|
|
#include "cmTryCompileCommand.cxx"
|
2002-09-19 13:49:14 +00:00
|
|
|
#include "cmTryRunCommand.cxx"
|
2001-11-19 22:52:08 +00:00
|
|
|
#include "cmVariableRequiresCommand.cxx"
|
2003-04-16 20:17:02 +00: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"
|
|
|
|
#include "cmFLTKWrapUICommand.cxx"
|
|
|
|
#include "cmGetCMakePropertyCommand.cxx"
|
|
|
|
#include "cmGetSourceFilePropertyCommand.cxx"
|
|
|
|
#include "cmGetTargetPropertyCommand.cxx"
|
|
|
|
#include "cmITKWrapTclCommand.cxx"
|
|
|
|
#include "cmIncludeExternalMSProjectCommand.cxx"
|
|
|
|
#include "cmLinkLibrariesCommand.cxx"
|
|
|
|
#include "cmLoadCacheCommand.cxx"
|
|
|
|
#include "cmOutputRequiredFilesCommand.cxx"
|
|
|
|
#include "cmRemoveCommand.cxx"
|
|
|
|
#include "cmSeparateArgumentsCommand.cxx"
|
|
|
|
#include "cmSetTargetPropertiesCommand.cxx"
|
|
|
|
#include "cmSourceFilesCommand.cxx"
|
|
|
|
#include "cmSourceFilesRemoveCommand.cxx"
|
|
|
|
#include "cmSourceGroupCommand.cxx"
|
2002-04-22 15:50:43 +00:00
|
|
|
#include "cmVTKMakeInstantiatorCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmVTKWrapJavaCommand.cxx"
|
|
|
|
#include "cmVTKWrapPythonCommand.cxx"
|
|
|
|
#include "cmVTKWrapTclCommand.cxx"
|
2001-10-15 18:19:53 +00:00
|
|
|
#include "cmQTWrapCPPCommand.cxx"
|
2001-11-09 17:03:41 +00:00
|
|
|
#include "cmQTWrapUICommand.cxx"
|
2003-04-16 20:17:02 +00:00
|
|
|
#include "cmUseMangledMesaCommand.cxx"
|
|
|
|
#include "cmUtilitySourceCommand.cxx"
|
2001-05-05 15:03:35 +00:00
|
|
|
#include "cmWrapExcludeFilesCommand.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
|
|
|
|
2001-02-13 00:49:52 +00:00
|
|
|
void GetPredefinedCommands(std::list<cmCommand*>& commands)
|
|
|
|
{
|
2003-07-21 20:38:53 +00:00
|
|
|
commands.push_back(new cmAddCustomCommandCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmAddCustomTargetCommand);
|
|
|
|
commands.push_back(new cmAddDefinitionsCommand);
|
2003-07-08 02:41:27 +00:00
|
|
|
commands.push_back(new cmAddDependenciesCommand);
|
2001-04-11 18:59:02 +00:00
|
|
|
commands.push_back(new cmAddExecutableCommand);
|
|
|
|
commands.push_back(new cmAddLibraryCommand);
|
2001-06-06 00:34:57 +00:00
|
|
|
commands.push_back(new cmAddTestCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmBuildCommand);
|
|
|
|
commands.push_back(new cmBuildNameCommand);
|
2002-04-17 20:16:06 +00:00
|
|
|
commands.push_back(new cmCMakeMinimumRequired);
|
2001-05-07 22:11:16 +00:00
|
|
|
commands.push_back(new cmConfigureFileCommand);
|
2002-03-20 21:19:00 +00:00
|
|
|
commands.push_back(new cmCreateTestSourceList);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmElseCommand);
|
2001-06-06 17:58:18 +00:00
|
|
|
commands.push_back(new cmEnableTestingCommand);
|
2001-07-25 20:53:13 +00:00
|
|
|
commands.push_back(new cmEndForEachCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmEndIfCommand);
|
2001-05-07 22:11:16 +00:00
|
|
|
commands.push_back(new cmExecProgramCommand);
|
2003-07-07 21:47:17 +00:00
|
|
|
commands.push_back(new cmFileCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmFindFileCommand);
|
2001-02-13 00:49:52 +00:00
|
|
|
commands.push_back(new cmFindLibraryCommand);
|
2003-01-21 22:15:22 +00:00
|
|
|
commands.push_back(new cmFindPackageCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmFindPathCommand);
|
2001-02-13 00:49:52 +00:00
|
|
|
commands.push_back(new cmFindProgramCommand);
|
2001-07-25 20:53:13 +00:00
|
|
|
commands.push_back(new cmForEachCommand);
|
2001-05-25 01:13:56 +00:00
|
|
|
commands.push_back(new cmGetFilenameComponentCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmIfCommand);
|
|
|
|
commands.push_back(new cmIncludeCommand);
|
2001-02-13 00:49:52 +00:00
|
|
|
commands.push_back(new cmIncludeDirectoryCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmIncludeRegularExpressionCommand);
|
2001-05-23 15:31:43 +00:00
|
|
|
commands.push_back(new cmInstallFilesCommand);
|
2001-07-31 15:29:21 +00:00
|
|
|
commands.push_back(new cmInstallProgramsCommand);
|
2001-05-23 15:31:43 +00:00
|
|
|
commands.push_back(new cmInstallTargetsCommand);
|
2001-02-13 00:49:52 +00:00
|
|
|
commands.push_back(new cmLinkDirectoriesCommand);
|
2002-08-13 19:46:33 +00:00
|
|
|
commands.push_back(new cmMacroCommand);
|
2001-05-07 22:11:16 +00:00
|
|
|
commands.push_back(new cmMakeDirectoryCommand);
|
2001-11-26 23:28:27 +00:00
|
|
|
commands.push_back(new cmMarkAsAdvancedCommand);
|
2001-06-04 21:16:36 +00:00
|
|
|
commands.push_back(new cmMessageCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmOptionCommand);
|
2001-02-13 00:49:52 +00:00
|
|
|
commands.push_back(new cmProjectCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmSetCommand);
|
2003-04-25 18:51:23 +00:00
|
|
|
commands.push_back(new cmSetSourceFilesPropertiesCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmSiteNameCommand);
|
2002-11-06 22:35:27 +00:00
|
|
|
commands.push_back(new cmStringCommand);
|
2001-02-13 00:49:52 +00:00
|
|
|
commands.push_back(new cmSubdirCommand);
|
2001-08-01 20:14:16 +00:00
|
|
|
commands.push_back(new cmSubdirDependsCommand);
|
2001-05-05 15:03:35 +00:00
|
|
|
commands.push_back(new cmTargetLinkLibrariesCommand);
|
2002-08-28 18:51:10 +00:00
|
|
|
commands.push_back(new cmTryCompileCommand);
|
2002-09-19 13:49:14 +00:00
|
|
|
commands.push_back(new cmTryRunCommand);
|
2001-11-19 22:52:08 +00:00
|
|
|
commands.push_back(new cmVariableRequiresCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmWriteFileCommand);
|
|
|
|
|
|
|
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
|
|
|
commands.push_back(new cmAbstractFilesCommand);
|
|
|
|
commands.push_back(new cmAuxSourceDirectoryCommand);
|
|
|
|
commands.push_back(new cmExportLibraryDependenciesCommand);
|
|
|
|
commands.push_back(new cmFLTKWrapUICommand);
|
|
|
|
commands.push_back(new cmGetCMakePropertyCommand);
|
|
|
|
commands.push_back(new cmGetSourceFilePropertyCommand);
|
|
|
|
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);
|
|
|
|
commands.push_back(new cmSeparateArgumentsCommand);
|
|
|
|
commands.push_back(new cmSetTargetPropertiesCommand);
|
|
|
|
commands.push_back(new cmSourceFilesCommand);
|
|
|
|
commands.push_back(new cmSourceFilesRemoveCommand);
|
|
|
|
commands.push_back(new cmSourceGroupCommand);
|
2002-04-22 15:50:43 +00:00
|
|
|
commands.push_back(new cmVTKMakeInstantiatorCommand);
|
2001-05-03 19:28:06 +00:00
|
|
|
commands.push_back(new cmVTKWrapJavaCommand);
|
2001-04-24 20:49:12 +00:00
|
|
|
commands.push_back(new cmVTKWrapPythonCommand);
|
|
|
|
commands.push_back(new cmVTKWrapTclCommand);
|
2001-10-15 18:19:53 +00:00
|
|
|
commands.push_back(new cmQTWrapCPPCommand);
|
2001-11-09 17:03:41 +00:00
|
|
|
commands.push_back(new cmQTWrapUICommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
commands.push_back(new cmUseMangledMesaCommand);
|
|
|
|
commands.push_back(new cmUtilitySourceCommand);
|
2001-05-09 12:51:54 +00:00
|
|
|
commands.push_back(new cmWrapExcludeFilesCommand);
|
2003-04-16 20:17:02 +00:00
|
|
|
#endif
|
2001-02-13 00:49:52 +00:00
|
|
|
}
|