mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 05:35:46 +00:00
Move dead submodules in-tree
Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
c0cceff365
commit
6c655321e6
4081 changed files with 1185566 additions and 45 deletions
37
externals/dynarmic/CMakeModules/FindUnicorn.cmake
vendored
Normal file
37
externals/dynarmic/CMakeModules/FindUnicorn.cmake
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Exports:
|
||||
#
|
||||
# Variables:
|
||||
# LIBUNICORN_FOUND
|
||||
# LIBUNICORN_INCLUDE_DIR
|
||||
# LIBUNICORN_LIBRARY
|
||||
#
|
||||
# Target:
|
||||
# Unicorn::Unicorn
|
||||
#
|
||||
|
||||
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)
|
||||
|
||||
if (UNICORN_FOUND)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
unset(THREADS_PREFER_PTHREAD_FLAG)
|
||||
|
||||
add_library(Unicorn::Unicorn UNKNOWN IMPORTED)
|
||||
set_target_properties(Unicorn::Unicorn PROPERTIES
|
||||
IMPORTED_LOCATION ${LIBUNICORN_LIBRARY}
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${LIBUNICORN_INCLUDE_DIR}
|
||||
INTERFACE_LINK_LIBRARIES Threads::Threads
|
||||
)
|
||||
endif()
|
||||
|
||||
mark_as_advanced(LIBUNICORN_INCLUDE_DIR LIBUNICORN_LIBRARY)
|
Loading…
Add table
Add a link
Reference in a new issue