summaryrefslogtreecommitdiff
path: root/Source/cmCustomCommandTypes.h
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-09-20 22:44:14 +0200
committerBrad King <brad.king@kitware.com>2019-09-26 10:02:06 -0400
commitf151a5770597dbe341fc6329a711f40e9195c773 (patch)
treeca2f50db700d240033ffcf7dbbb8e73d596ddeca /Source/cmCustomCommandTypes.h
parent28a2613dd291c641f17940e3f996bd4cc9b9888d (diff)
downloadcmake-f151a5770597dbe341fc6329a711f40e9195c773.tar.gz
cmMakefile: Move enumerations into new header
The enumerations will also be used in cmLocalGenerator.
Diffstat (limited to 'Source/cmCustomCommandTypes.h')
-rw-r--r--Source/cmCustomCommandTypes.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Source/cmCustomCommandTypes.h b/Source/cmCustomCommandTypes.h
new file mode 100644
index 0000000000..f3ecd6efb8
--- /dev/null
+++ b/Source/cmCustomCommandTypes.h
@@ -0,0 +1,30 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cmCustomCommandTypes_h
+#define cmCustomCommandTypes_h
+
+#include "cmConfigure.h" // IWYU pragma: keep
+
+/** Target custom command type */
+enum class cmCustomCommandType
+{
+ PRE_BUILD,
+ PRE_LINK,
+ POST_BUILD
+};
+
+/** Where the command originated from. */
+enum class cmCommandOrigin
+{
+ Project,
+ Generator
+};
+
+/** How to handle custom commands for object libraries */
+enum class cmObjectLibraryCommands
+{
+ Reject,
+ Accept
+};
+
+#endif