summaryrefslogtreecommitdiffstats
path: root/contrib/cmake/FindArabica.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cmake/FindArabica.cmake')
-rw-r--r--contrib/cmake/FindArabica.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/cmake/FindArabica.cmake b/contrib/cmake/FindArabica.cmake
new file mode 100644
index 0000000..bd4fe18
--- /dev/null
+++ b/contrib/cmake/FindArabica.cmake
@@ -0,0 +1,21 @@
+FIND_PATH(ARABICA_INCLUDE_DIR Arabica/getparam.hpp
+ PATH_SUFFIXES include/arabica include
+ PATHS
+ /usr/local
+ /usr
+ /sw # Fink
+ /opt/local # DarwinPorts
+ /opt/csw # Blastwave
+ /opt
+ HINTS $ENV{ARABICA_SRC}
+)
+
+FIND_LIBRARY(ARABICA_LIBRARY
+ NAMES arabica
+ HINTS $ENV{ARABICA_SRC}/src/.libs/
+
+)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Arabica DEFAULT_MSG ARABICA_LIBRARY ARABICA_INCLUDE_DIR)
+MARK_AS_ADVANCED(ARABICA_LIBRARY ARABICA_INCLUDE_DIR)