summaryrefslogtreecommitdiffstats
path: root/modules/FindTQt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindTQt.cmake')
-rw-r--r--modules/FindTQt.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/FindTQt.cmake b/modules/FindTQt.cmake
new file mode 100644
index 0000000..018a035
--- /dev/null
+++ b/modules/FindTQt.cmake
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+pkg_search_module( TQT TQt )
+
+# find tmoc, a simple TQt wrapper over moc
+if( NOT TQT_TMOC_EXECUTABLE )
+ find_program( TQT_TMOC_EXECUTABLE
+ NAMES tmoc
+ HINTS ${TQTDIR}/bin $ENV{TQTDIR}/bin
+ PATHS ${BINDIR} )
+endif( NOT TQT_TMOC_EXECUTABLE )