summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorCommon.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-02-28 11:08:26 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-03-06 21:01:02 (GMT)
commit47dbe9267eea47e7be656da409a9ee8ced691422 (patch)
treec1e1bb12caba3a4e23497b9056bb6ac10f4535bf /Source/cmQtAutoGeneratorCommon.h
parent9662b9efb747192b6825100e5d06fe63c0893484 (diff)
downloadCMake-47dbe9267eea47e7be656da409a9ee8ced691422.zip
CMake-47dbe9267eea47e7be656da409a9ee8ced691422.tar.gz
CMake-47dbe9267eea47e7be656da409a9ee8ced691422.tar.bz2
Autogen: Add cmQtAutogeneratorCommon class with shared types and functions
Diffstat (limited to 'Source/cmQtAutoGeneratorCommon.h')
-rw-r--r--Source/cmQtAutoGeneratorCommon.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/Source/cmQtAutoGeneratorCommon.h b/Source/cmQtAutoGeneratorCommon.h
new file mode 100644
index 0000000..48abacb
--- /dev/null
+++ b/Source/cmQtAutoGeneratorCommon.h
@@ -0,0 +1,29 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cmQtAutoGeneratorCommon_h
+#define cmQtAutoGeneratorCommon_h
+
+#include <cmConfigure.h> // IWYU pragma: keep
+#include <string>
+#include <vector>
+
+class cmGeneratorTarget;
+class cmLocalGenerator;
+
+class cmQtAutoGeneratorCommon
+{
+ // - Types and statics
+public:
+ static const char* listSep;
+
+public:
+ /// @brief Reads the resource files list from from a .qrc file
+ /// @arg fileName Must be the absolute path of the .qrc file
+ /// @return True if the rcc file was successfully parsed
+ static bool RccListInputs(const std::string& qtMajorVersion,
+ const std::string& rccCommand,
+ const std::string& fileName,
+ std::vector<std::string>& files);
+};
+
+#endif