diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-06-03 14:30:23 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-06-03 14:30:23 (GMT) |
commit | ba68f771b369e65476e7ce12aa8dd1cf18d7f529 (patch) | |
tree | 4580bb0cd83663ac32e7234b47f1a03881a2b709 /Source/cmTarget.h | |
parent | 4f55e4870d0dea6f700943ccd4bac958c478cff4 (diff) | |
download | CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.zip CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.gz CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.bz2 |
yikes added new custom command support
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 14ee770..89dac6a 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -34,6 +34,8 @@ public: SHARED_LIBRARY, MODULE_LIBRARY, UTILITY, INSTALL_FILES, INSTALL_PROGRAMS }; + enum CustomCommandType { PRE_BUILD, PRE_LINK, POST_BUILD }; + /** * Return the type of target. */ @@ -57,8 +59,18 @@ public: /** * Get the list of the custom commands for this target */ - const std::vector<cmCustomCommand> &GetCustomCommands() const {return m_CustomCommands;} - std::vector<cmCustomCommand> &GetCustomCommands() {return m_CustomCommands;} + const std::vector<cmCustomCommand> &GetPreBuildCommands() const + {return m_PreBuildCommands;} + std::vector<cmCustomCommand> &GetPreBuildCommands() + {return m_PreBuildCommands;} + const std::vector<cmCustomCommand> &GetPreLinkCommands() const + {return m_PreLinkCommands;} + std::vector<cmCustomCommand> &GetPreLinkCommands() + {return m_PreLinkCommands;} + const std::vector<cmCustomCommand> &GetPostBuildCommands() const + {return m_PostBuildCommands;} + std::vector<cmCustomCommand> &GetPostBuildCommands() + {return m_PostBuildCommands;} /** * Get the list of the source lists used by this target @@ -186,7 +198,9 @@ private: private: - std::vector<cmCustomCommand> m_CustomCommands; + std::vector<cmCustomCommand> m_PreBuildCommands; + std::vector<cmCustomCommand> m_PreLinkCommands; + std::vector<cmCustomCommand> m_PostBuildCommands; std::vector<std::string> m_SourceLists; TargetType m_TargetType; std::vector<cmSourceFile*> m_SourceFiles; |