summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake44
1 files changed, 44 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..45509b2
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,44 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# hal
+pkg_search_module( HAL hal )
+if( NOT HAL_FOUND )
+ tde_message_fatal( "hal are required, but not found on your system" )
+endif( )
+
+
+# dbus-1
+pkg_search_module( DBUS dbus-1 )
+if( NOT DBUS_FOUND )
+ tde_message_fatal( "dbus-1 are required, but not found on your system" )
+endif( )
+
+
+# dbus-1-tqt
+pkg_search_module( DBUS_TQT dbus-1-tqt )
+if( DBUS_TQT_FOUND )
+ find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 )
+else()
+ tde_message_fatal( "dbus-1-tqt are required, but not found on your system" )
+endif( )
+
+
+# libnm-util
+pkg_search_module( NM_UTIL libnm-util )
+if( NOT NM_UTIL_FOUND )
+ tde_message_fatal( "libnm-util are required, but not found on your system" )
+endif( )
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )