diff options
Diffstat (limited to 'externals/find-modules/FindUnicorn.cmake')
| -rw-r--r-- | externals/find-modules/FindUnicorn.cmake | 18 |
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 | |||
| 6 | find_path(LIBUNICORN_INCLUDE_DIR | ||
| 7 | unicorn/unicorn.h | ||
| 8 | HINTS $ENV{UNICORNDIR} | ||
| 9 | PATH_SUFFIXES include) | ||
| 10 | |||
| 11 | find_library(LIBUNICORN_LIBRARY | ||
| 12 | NAMES unicorn | ||
| 13 | HINTS $ENV{UNICORNDIR}) | ||
| 14 | |||
| 15 | include(FindPackageHandleStandardArgs) | ||
| 16 | find_package_handle_standard_args(unicorn DEFAULT_MSG | ||
| 17 | LIBUNICORN_LIBRARY LIBUNICORN_INCLUDE_DIR) | ||
| 18 | mark_as_advanced(LIBUNICORN_INCLUDE_DIR LIBUNICORN_LIBRARY) | ||