summaryrefslogtreecommitdiffstats
path: root/kbugbuster/kresources/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-11-08 02:55:57 +0100
committerSlávek Banko <slavek.banko@axis.cz>2012-11-08 03:01:52 +0100
commit59a2f3d91922f06ca842abb8680fade79994d4ec (patch)
tree5440bd6ff36ff0c5dc5c5d6028a78087f8ce45c4 /kbugbuster/kresources/ConfigureChecks.cmake
parentfae65940e8688806b47020f41410540d3caa9bdf (diff)
downloadtdesdk-59a2f3d91922f06ca842abb8680fade79994d4ec.tar.gz
tdesdk-59a2f3d91922f06ca842abb8680fade79994d4ec.zip
Fix cmake build of kbugbuster with kcal
This resolves bug report 1041
Diffstat (limited to 'kbugbuster/kresources/ConfigureChecks.cmake')
-rw-r--r--kbugbuster/kresources/ConfigureChecks.cmake36
1 files changed, 36 insertions, 0 deletions
diff --git a/kbugbuster/kresources/ConfigureChecks.cmake b/kbugbuster/kresources/ConfigureChecks.cmake
new file mode 100644
index 00000000..b12337a1
--- /dev/null
+++ b/kbugbuster/kresources/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( )