summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-01 20:55:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-01 20:55:32 (GMT)
commit96ec40943cc1f96d8789fff62c6416a91c01f066 (patch)
tree1a5dc61afab89b36a15d9fd886c771104e029783 /Source/cmTarget.h
parent13d4fd06f09ad1beaab01d714c246dbee2568373 (diff)
downloadCMake-96ec40943cc1f96d8789fff62c6416a91c01f066.zip
CMake-96ec40943cc1f96d8789fff62c6416a91c01f066.tar.gz
CMake-96ec40943cc1f96d8789fff62c6416a91c01f066.tar.bz2
ENH: implement ADD_TARGET command, and add an ALL_BUILD target
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 6164e28..dd01521 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -54,12 +54,16 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class cmTarget
{
public:
+ enum TargetType { EXECUTABLE, LIBRARY, UTILITY };
/**
- * is this target a library?
+ * Return the type of target.
*/
- bool IsALibrary() const { return m_IsALibrary; }
- bool GetIsALibrary() const { return m_IsALibrary; }
- void SetIsALibrary(bool f) { m_IsALibrary = f; }
+ TargetType GetType() const
+ {
+ return m_TargetType;
+ }
+
+ void SetType(TargetType f) { m_TargetType = f; }
/**
* Get the list of the custom commands for this target
@@ -103,7 +107,7 @@ public:
private:
std::vector<cmCustomCommand> m_CustomCommands;
std::vector<std::string> m_SourceLists;
- bool m_IsALibrary;
+ TargetType m_TargetType;
std::vector<cmSourceFile> m_SourceFiles;
LinkLibraries m_LinkLibraries;
};