diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-02-27 21:48:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-02-27 21:48:15 (GMT) |
commit | 2bba34959c536a8820424c96dddb419bc3aa8f28 (patch) | |
tree | 7d5442fa1d91814e8d84849d236e81a883a8bb2e /Source/cmBuildSharedLibrariesCommand.h | |
parent | cab31a50136b0fab2236f92b237a4f2dec7a7953 (diff) | |
download | CMake-2bba34959c536a8820424c96dddb419bc3aa8f28.zip CMake-2bba34959c536a8820424c96dddb419bc3aa8f28.tar.gz CMake-2bba34959c536a8820424c96dddb419bc3aa8f28.tar.bz2 |
new commands
Diffstat (limited to 'Source/cmBuildSharedLibrariesCommand.h')
-rw-r--r-- | Source/cmBuildSharedLibrariesCommand.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Source/cmBuildSharedLibrariesCommand.h b/Source/cmBuildSharedLibrariesCommand.h new file mode 100644 index 0000000..6571a5c --- /dev/null +++ b/Source/cmBuildSharedLibrariesCommand.h @@ -0,0 +1,64 @@ +#ifndef cmBuildSharedLibrariesCommand_h +#define cmBuildSharedLibrariesCommand_h + +#include "cmStandardIncludes.h" +#include "cmCommand.h" + +/** \class cmBuildSharedLibrariesCommand + * \brief Define a command that searches for an include file. + * + * cmBuildSharedLibrariesCommand is used to define a CMake variable include + * path location by specifying a file and list of directories. + */ +class cmBuildSharedLibrariesCommand : public cmCommand +{ +public: + /** + * This is a virtual constructor for the command. + */ + virtual cmCommand* Clone() + { + return new cmBuildSharedLibrariesCommand; + } + + /** + * This is called when the command is first encountered in + * the CMakeLists.txt file. + */ + virtual bool Invoke(std::vector<std::string>& args); + + /** + * This determines if the command gets propagated down + * to makefiles located in subdirectories. + */ + virtual bool IsInherited() + {return true;} + + /** + * The name of the command as specified in CMakeList.txt. + */ + virtual const char* GetName() { return "BUILD_SHARED_LIBRARIES";} + + /** + * Succinct documentation. + */ + virtual const char* GetTerseDocumentation() + { + return "Build shared libraries instead of static"; + } + + /** + * More documentation. + */ + virtual const char* GetFullDocumentation() + { + return + "BUILD_SHARED_LIBRARIES()"; + } + +private: +}; + + + +#endif |