summaryrefslogtreecommitdiffstats
path: root/kbugbuster/tderesources/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:59 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:59 -0600
commit1515a4f2eb9cf023ed7f9c2e10106b5e93164a08 (patch)
treed5617734090b254659ff331ce7d1e574c4807caf /kbugbuster/tderesources/ConfigureChecks.cmake
parentf8069e2ea048f2657cc417d83820576ec55c181b (diff)
downloadtdesdk-1515a4f2eb9cf023ed7f9c2e10106b5e93164a08.tar.gz
tdesdk-1515a4f2eb9cf023ed7f9c2e10106b5e93164a08.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kbugbuster/tderesources/ConfigureChecks.cmake')
-rw-r--r--kbugbuster/tderesources/ConfigureChecks.cmake36
1 files changed, 36 insertions, 0 deletions
diff --git a/kbugbuster/tderesources/ConfigureChecks.cmake b/kbugbuster/tderesources/ConfigureChecks.cmake
new file mode 100644
index 00000000..b12337a1
--- /dev/null
+++ b/kbugbuster/tderesources/ConfigureChecks.cmake
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 Slavek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+message( "-- checking for 'libkcal'" )
+
+find_path(
+ LIBKCAL_INCLUDE_DIR
+ kcalversion.h
+ PATHS
+ ${TDE_INCLUDE_DIR}/libkcal
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+find_library(
+ LIBKCAL_LIBRARY
+ kcal
+ PATHS
+ ${TDE_LIB_DIR}
+ ${TQT_LIBRARY_DIRS}
+)
+if( LIBKCAL_LIBRARY )
+ get_filename_component( LIBKCAL_LIBRARY_DIR ${LIBKCAL_LIBRARY} PATH CACHE )
+endif( )
+
+if( NOT LIBKCAL_INCLUDE_DIR OR NOT LIBKCAL_LIBRARY_DIR )
+ tde_message_fatal( "libkcal required, but was not found on your system" )
+endif( )