2016-08-25 22:21:19 +01:00
|
|
|
# For libraries that already come with a CMakeLists file,
|
|
|
|
# simply add the directory to that file as a subdirectory
|
|
|
|
# to have CMake automatically recognize them.
|
|
|
|
|
2020-05-21 21:31:18 +01:00
|
|
|
# catch
|
|
|
|
|
|
|
|
add_library(catch INTERFACE)
|
|
|
|
target_include_directories(catch INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)
|
|
|
|
|
|
|
|
# fmt
|
|
|
|
|
2016-11-24 04:40:15 +00:00
|
|
|
if (NOT DYNARMIC_NO_BUNDLED_FMT)
|
|
|
|
# fmtlib formatting library
|
|
|
|
add_subdirectory(fmt)
|
|
|
|
endif()
|
2016-12-12 14:23:42 +00:00
|
|
|
|
2020-05-21 21:31:18 +01:00
|
|
|
# mp
|
|
|
|
|
|
|
|
add_library(mp INTERFACE)
|
|
|
|
target_include_directories(mp INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/mp/include>)
|
|
|
|
|
|
|
|
# robin-map
|
|
|
|
|
2020-05-21 22:31:54 +01:00
|
|
|
add_library(robin_map INTERFACE)
|
|
|
|
add_library(tsl::robin_map ALIAS robin_map)
|
|
|
|
target_include_directories(robin_map SYSTEM INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/robin-map/include>")
|
2020-05-21 21:31:18 +01:00
|
|
|
|
2021-03-01 20:23:52 +00:00
|
|
|
# vixl
|
|
|
|
|
2020-06-11 13:15:13 +01:00
|
|
|
if (ARCHITECTURE STREQUAL "arm64")
|
|
|
|
add_subdirectory(vixl)
|
|
|
|
endif()
|
2021-03-01 20:23:52 +00:00
|
|
|
|
2020-05-21 21:31:18 +01:00
|
|
|
# xbyak
|
|
|
|
|
2016-12-12 14:23:42 +00:00
|
|
|
if (NOT TARGET xbyak)
|
2020-06-11 13:15:13 +01:00
|
|
|
if (ARCHITECTURE STREQUAL "x86" OR ARCHITECTURE STREQUAL "x86_64")
|
2016-12-12 14:23:42 +00:00
|
|
|
add_library(xbyak INTERFACE)
|
2018-02-11 14:57:35 +00:00
|
|
|
target_include_directories(xbyak SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/xbyak/xbyak)
|
2017-06-12 01:17:04 +01:00
|
|
|
target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES)
|
2016-12-12 14:23:42 +00:00
|
|
|
endif()
|
|
|
|
endif()
|