diff options
| author | 2018-01-04 19:52:54 -0500 | |
|---|---|---|
| committer | 2018-01-04 19:52:54 -0500 | |
| commit | da7053b169a562caead1d58bde0606adb4a1af0e (patch) | |
| tree | dca84ec7ac5b1dbdca91f91b6096c7fd761114d1 /externals | |
| parent | svc: Add missing string_util include. (diff) | |
| download | yuzu-da7053b169a562caead1d58bde0606adb4a1af0e.tar.gz yuzu-da7053b169a562caead1d58bde0606adb4a1af0e.tar.xz yuzu-da7053b169a562caead1d58bde0606adb4a1af0e.zip | |
cmake: Add script to find Unicorn.
Diffstat (limited to 'externals')
| -rw-r--r-- | externals/cmake-modules/FindUnicorn.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/externals/cmake-modules/FindUnicorn.cmake b/externals/cmake-modules/FindUnicorn.cmake new file mode 100644 index 000000000..a0f2a71f6 --- /dev/null +++ b/externals/cmake-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) | ||