summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..5a6ef70
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2011 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing.net
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
+ find_program( MSGFMT_EXECUTABLE msgfmt )
+ if( NOT MSGFMT_EXECUTABLE )
+ tde_message_fatal( "msgfmt program is required, but was not found on your system" )
+ endif( )
+endif( )
+
+# common required stuff
+find_package( TQt )
+find_package( TDE )
+
+# check required packages
+pkg_search_module( XMU xmu )
+if( NOT XMU_FOUND )
+ tde_message_fatal( "xmu is required, but was not found on your system" )
+endif( )
+
+pkg_search_module( XPM xpm )
+if( NOT XPM_FOUND )
+ tde_message_fatal( "xpm is required, but was not found on your system" )
+endif( )
+