summaryrefslogblamecommitdiffstats
path: root/externals/find-modules/FindUnicorn.cmake
blob: a0f2a71f691d9a1f88445d3773f40c67c194b428 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)