CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Definitions for all external bundled libraries
  2. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
  3. include(DownloadExternals)
  4. # Catch
  5. add_library(catch-single-include INTERFACE)
  6. target_include_directories(catch-single-include INTERFACE catch/single_include)
  7. # Dynarmic
  8. if (ARCHITECTURE_x86_64)
  9. add_library(xbyak INTERFACE)
  10. set(DYNARMIC_TESTS OFF)
  11. set(DYNARMIC_NO_BUNDLED_FMT ON)
  12. add_subdirectory(dynarmic)
  13. endif()
  14. # libfmt
  15. add_subdirectory(fmt)
  16. add_library(fmt::fmt ALIAS fmt)
  17. # getopt
  18. if (MSVC)
  19. add_subdirectory(getopt)
  20. endif()
  21. # Glad
  22. add_subdirectory(glad)
  23. # inih
  24. add_subdirectory(inih)
  25. # lz4
  26. set(LZ4_BUNDLED_MODE ON)
  27. add_subdirectory(lz4/contrib/cmake_unofficial)
  28. target_include_directories(lz4_static INTERFACE ./lz4/lib)
  29. # MicroProfile
  30. add_library(microprofile INTERFACE)
  31. target_include_directories(microprofile INTERFACE ./microprofile)
  32. # Unicorn
  33. add_library(unicorn-headers INTERFACE)
  34. target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
  35. # Xbyak
  36. if (ARCHITECTURE_x86_64)
  37. # Defined before "dynarmic" above
  38. # add_library(xbyak INTERFACE)
  39. target_include_directories(xbyak INTERFACE ./xbyak/xbyak)
  40. target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES)
  41. endif()
  42. # Opus
  43. add_subdirectory(opus)
  44. target_include_directories(opus INTERFACE ./opus/include)
  45. # Cubeb
  46. if(ENABLE_CUBEB)
  47. set(BUILD_TESTS OFF CACHE BOOL "")
  48. add_subdirectory(cubeb)
  49. endif()