2016-08-25 23:21:19 +02: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.
|
|
|
|
|
2016-11-24 05:40:15 +01:00
|
|
|
if (NOT DYNARMIC_NO_BUNDLED_FMT)
|
|
|
|
# fmtlib formatting library
|
|
|
|
add_subdirectory(fmt)
|
|
|
|
endif()
|
2016-12-12 15:23:42 +01:00
|
|
|
|
|
|
|
if (NOT TARGET xbyak)
|
|
|
|
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
|
|
|
add_library(xbyak INTERFACE)
|
|
|
|
target_include_directories(xbyak INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/xbyak/xbyak)
|
2017-06-12 02:17:04 +02:00
|
|
|
target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES)
|
2016-12-12 15:23:42 +01:00
|
|
|
endif()
|
|
|
|
endif()
|
2017-02-25 18:31:53 +01:00
|
|
|
|
|
|
|
add_library(catch INTERFACE)
|
|
|
|
target_include_directories(catch INTERFACE
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)
|