summaryrefslogtreecommitdiffstats
path: root/wifi/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-20 19:08:10 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-20 19:08:10 +0000
commitfa8a6a4aa1313667249adc0fd8eaac368c23903a (patch)
treea57704b015e871c60bf84dc520dba406adf35ff1 /wifi/ConfigureChecks.cmake
parent4cad91311b47c94efb14a926130e45fe3662ef05 (diff)
downloadtdenetwork-fa8a6a4aa1313667249adc0fd8eaac368c23903a.tar.gz
tdenetwork-fa8a6a4aa1313667249adc0fd8eaac368c23903a.zip
[kdenetwork/wifi] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1254683 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/ConfigureChecks.cmake')
-rw-r--r--wifi/ConfigureChecks.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/wifi/ConfigureChecks.cmake b/wifi/ConfigureChecks.cmake
new file mode 100644
index 00000000..f3a7ddb2
--- /dev/null
+++ b/wifi/ConfigureChecks.cmake
@@ -0,0 +1,34 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# check for aRts
+if( WITH_ARTS )
+ pkg_search_module( ARTS arts )
+ if( NOT ARTS_FOUND )
+ tde_message_fatal( "aRts is requested, but was not found on your system" )
+ endif( )
+else( )
+ set( WITHOUT_ARTS 1 CACHE INTERNAL "" FORCE )
+endif( )
+
+
+# check for wireless tools
+check_library_exists( iw iw_get_stats "" HAVE_IW )
+if( HAVE_IW )
+ check_include_file( iwlib.h HAVE_IWLIB_H )
+ # we need at least wireless tools >= 27
+ add_definitions( -DHAVE_IW_27 -DHAVE_IW_27pre19 )
+endif( )
+if( HAVE_IW AND HAVE_IWLIB_H )
+ set( IW_LIBRARY iw )
+else( )
+ tde_message_fatal( "wifi support needs wireless tools >= 27, but was not found on your system" )
+endif( )