summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 16:22:42 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 16:22:42 (GMT)
commit93ea311fcb3172d67521d82bdb9be8773f2dd044 (patch)
treec39d229afa603a61a576de5224fdec6a2af7c477 /cmake
parent938954e8348281352cb414f17706283cec5c51d5 (diff)
downloadlibkolab-93ea311fcb3172d67521d82bdb9be8773f2dd044.tar.gz
added FindKDELibraries.cmake
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindKDELibraries.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/cmake/modules/FindKDELibraries.cmake b/cmake/modules/FindKDELibraries.cmake
new file mode 100644
index 0000000..3b12734
--- /dev/null
+++ b/cmake/modules/FindKDELibraries.cmake
@@ -0,0 +1,32 @@
+#Find some libraries
+find_library(KCALCORE_LIBRARY NAMES kcalcore PATH_SUFFIXES kde4/devel)
+if(KCALCORE_LIBRARY)
+ set(KCALCORE_LIBRARY_FOUND ON)
+ message("KCalCore found: ${KCALCORE_LIBRARY}")
+ find_path(KDEPIMLIBS_INCLUDE_DIRS NAMES kcalcore/event.h)
+endif(KCALCORE_LIBRARY)
+
+find_library(KMIME_LIBRARY NAMES kmime)
+if(KMIME_LIBRARY)
+ set(KMIME_LIBRARY_FOUND ON)
+ message("KMime found: ${KMIME_LIBRARY}")
+endif(KMIME_LIBRARY)
+
+find_library(KABC_LIBRARY NAMES kabc)
+if(KABC_LIBRARY)
+ set(KABC_LIBRARY_FOUND ON)
+ message("KABC found: ${KABC_LIBRARY}")
+endif(KABC_LIBRARY)
+
+find_library(AKONADI-KDE_LIBRARY NAMES akonadi-kde)
+if(AKONADI-KDE_LIBRARY)
+ set(AKONADI-KDE_LIBRARY_FOUND ON)
+ message("AKONADI-KDE found: ${AKONADI-KDE_LIBRARY}")
+endif(AKONADI-KDE_LIBRARY)
+
+find_library(AKONADI-NOTES_LIBRARY NAMES akonadi-notes)
+if(AKONADI-NOTES_LIBRARY)
+ set(AKONADI-NOTES_LIBRARY_FOUND ON)
+ message("AKONADI-NOTES found: ${AKONADI-NOTES_LIBRARY}")
+endif(AKONADI-NOTES_LIBRARY)
+