summaryrefslogtreecommitdiffstats
path: root/cmake/FindDEXELA.cmake
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-15 08:53:48 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-15 08:53:48 +0100
commitd4f1fc90188820a00a74a7e5fd04f6feffa7537e (patch)
tree8de40811f49ed755004d0c104edfad8123b45623 /cmake/FindDEXELA.cmake
parent8f1b7c6d44bb5e5f44b497e3260364407a98361e (diff)
parent73246448ec8294d781bb7f223fce395d49bfb6e4 (diff)
downloaduca-d4f1fc90188820a00a74a7e5fd04f6feffa7537e.tar.gz
uca-d4f1fc90188820a00a74a7e5fd04f6feffa7537e.tar.bz2
uca-d4f1fc90188820a00a74a7e5fd04f6feffa7537e.tar.xz
uca-d4f1fc90188820a00a74a7e5fd04f6feffa7537e.zip
Merge branch 'dexela_simple_packaging'
Conflicts: .gitignore
Diffstat (limited to 'cmake/FindDEXELA.cmake')
-rw-r--r--cmake/FindDEXELA.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/FindDEXELA.cmake b/cmake/FindDEXELA.cmake
new file mode 100644
index 0000000..0412b19
--- /dev/null
+++ b/cmake/FindDEXELA.cmake
@@ -0,0 +1,21 @@
+# Try to find libdexela.so
+#
+# Defines
+#
+# DEXELA_FOUND - system has libdexela
+# DEXELA_INCLUDE_DIRS - libdexela include directory
+# DEXELA_LIBRARIES - dexela library
+
+find_package(PackageHandleStandardArgs)
+
+find_path(DEXELA_INCLUDE_DIRS dexela_api.h PATHS /usr/include)
+find_library(DEXELA_LIBRARIES dexela)
+
+find_package_handle_standard_args(DEXELA DEFAULT_MSG DEXELA_LIBRARIES DEXELA_INCLUDE_DIRS)
+
+mark_as_advanced(
+ DEXELA_INCLUDE_DIRS
+ DEXELA_LIBRARIES
+)
+
+message("-- Dexela libraries found: ${DEXELA_FOUND}")