forked from suyu/suyu
cmake: Add script to find Unicorn.
This commit is contained in:
parent
0dbc8f3577
commit
da7053b169
1 changed files with 18 additions and 0 deletions
18
externals/cmake-modules/FindUnicorn.cmake
vendored
Normal file
18
externals/cmake-modules/FindUnicorn.cmake
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Exports:
|
||||
# LIBUNICORN_FOUND
|
||||
# LIBUNICORN_INCLUDE_DIR
|
||||
# LIBUNICORN_LIBRARY
|
||||
|
||||
find_path(LIBUNICORN_INCLUDE_DIR
|
||||
unicorn/unicorn.h
|
||||
HINTS $ENV{UNICORNDIR}
|
||||
PATH_SUFFIXES include)
|
||||
|
||||
find_library(LIBUNICORN_LIBRARY
|
||||
NAMES unicorn
|
||||
HINTS $ENV{UNICORNDIR})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(unicorn DEFAULT_MSG
|
||||
LIBUNICORN_LIBRARY LIBUNICORN_INCLUDE_DIR)
|
||||
mark_as_advanced(LIBUNICORN_INCLUDE_DIR LIBUNICORN_LIBRARY)
|
Loading…
Reference in a new issue