mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
cmake: Add checks for projects using dynarmic as subproject
This commit is contained in:
parent
33b89cca08
commit
04b1c78166
@ -121,16 +121,16 @@ if (NOT TARGET boost)
|
|||||||
target_include_directories(boost SYSTEM INTERFACE ${Boost_INCLUDE_DIRS})
|
target_include_directories(boost SYSTEM INTERFACE ${Boost_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DYNARMIC_NO_BUNDLED_FMT)
|
if (DYNARMIC_NO_BUNDLED_FMT AND NOT TARGET fmt)
|
||||||
find_package(fmt REQUIRED)
|
find_package(fmt REQUIRED)
|
||||||
add_library(fmt ALIAS fmt::fmt)
|
add_library(fmt ALIAS fmt::fmt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DYNARMIC_NO_BUNDLED_ROBIN_MAP)
|
if (DYNARMIC_NO_BUNDLED_ROBIN_MAP AND NOT TARGET tsl::robin_map)
|
||||||
find_package(tsl-robin-map REQUIRED)
|
find_package(tsl-robin-map REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DYNARMIC_NO_BUNDLED_XBYAK)
|
if (DYNARMIC_NO_BUNDLED_XBYAK AND NOT TARGET xbyak)
|
||||||
if (ARCHITECTURE STREQUAL "x86" OR ARCHITECTURE STREQUAL "x86_64")
|
if (ARCHITECTURE STREQUAL "x86" OR ARCHITECTURE STREQUAL "x86_64")
|
||||||
find_package(xbyak REQUIRED)
|
find_package(xbyak REQUIRED)
|
||||||
add_library(xbyak ALIAS xbyak::xbyak)
|
add_library(xbyak ALIAS xbyak::xbyak)
|
||||||
@ -152,7 +152,7 @@ if (DYNARMIC_TESTS_USE_UNICORN)
|
|||||||
find_package(Unicorn REQUIRED)
|
find_package(Unicorn REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DYNARMIC_TESTS AND DYNARMIC_NO_BUNDLED_CATCH)
|
if (DYNARMIC_TESTS AND DYNARMIC_NO_BUNDLED_CATCH AND NOT TARGET catch)
|
||||||
find_package(Catch2 REQUIRED)
|
find_package(Catch2 REQUIRED)
|
||||||
add_library(catch ALIAS Catch2::Catch2)
|
add_library(catch ALIAS Catch2::Catch2)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user