cmake: Add options to unbundle Zydis
This commit is contained in:
parent
04b1c78166
commit
352898e88b
2 changed files with 11 additions and 4 deletions
|
@ -137,6 +137,11 @@ if (DYNARMIC_NO_BUNDLED_XBYAK AND NOT TARGET xbyak)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (DYNARMIC_NO_BUNDLED_ZYDIS AND NOT TARGET Zydis)
|
||||||
|
find_package(Zydis REQUIRED)
|
||||||
|
add_library(Zydis ALIAS Zydis::Zydis)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Enable unit-testing.
|
# Enable unit-testing.
|
||||||
enable_testing(true)
|
enable_testing(true)
|
||||||
|
|
||||||
|
|
10
externals/CMakeLists.txt
vendored
10
externals/CMakeLists.txt
vendored
|
@ -49,7 +49,9 @@ endif()
|
||||||
|
|
||||||
# zydis
|
# zydis
|
||||||
|
|
||||||
option(ZYDIS_BUILD_TOOLS "" OFF)
|
if (NOT TARGET Zydis)
|
||||||
option(ZYDIS_BUILD_EXAMPLES "" OFF)
|
option(ZYDIS_BUILD_TOOLS "" OFF)
|
||||||
set(ZYDIS_ZYCORE_PATH "${CMAKE_CURRENT_LIST_DIR}/zycore" CACHE PATH "")
|
option(ZYDIS_BUILD_EXAMPLES "" OFF)
|
||||||
add_subdirectory(zydis EXCLUDE_FROM_ALL)
|
set(ZYDIS_ZYCORE_PATH "${CMAKE_CURRENT_LIST_DIR}/zycore" CACHE PATH "")
|
||||||
|
add_subdirectory(zydis EXCLUDE_FROM_ALL)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue