summaryrefslogtreecommitdiff
path: root/externals/find-modules/FindUnicorn.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'externals/find-modules/FindUnicorn.cmake')
-rw-r--r--externals/find-modules/FindUnicorn.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/externals/find-modules/FindUnicorn.cmake b/externals/find-modules/FindUnicorn.cmake
new file mode 100644
index 000000000..a0f2a71f6
--- /dev/null
+++ b/externals/find-modules/FindUnicorn.cmake
@@ -0,0 +1,18 @@
1# Exports:
2# LIBUNICORN_FOUND
3# LIBUNICORN_INCLUDE_DIR
4# LIBUNICORN_LIBRARY
5
6find_path(LIBUNICORN_INCLUDE_DIR
7 unicorn/unicorn.h
8 HINTS $ENV{UNICORNDIR}
9 PATH_SUFFIXES include)
10
11find_library(LIBUNICORN_LIBRARY
12 NAMES unicorn
13 HINTS $ENV{UNICORNDIR})
14
15include(FindPackageHandleStandardArgs)
16find_package_handle_standard_args(unicorn DEFAULT_MSG
17 LIBUNICORN_LIBRARY LIBUNICORN_INCLUDE_DIR)
18mark_as_advanced(LIBUNICORN_INCLUDE_DIR LIBUNICORN_LIBRARY)