CMakeLists.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Definitions for all external bundled libraries
  2. # Catch
  3. add_library(catch-single-include INTERFACE)
  4. target_include_directories(catch-single-include INTERFACE catch/single_include)
  5. # Crypto++
  6. add_subdirectory(cryptopp)
  7. # Dynarmic
  8. # Dynarmic will skip defining xbyak if it's already defined, we then define it below
  9. add_library(xbyak INTERFACE)
  10. option(DYNARMIC_TESTS OFF)
  11. set(DYNARMIC_NO_BUNDLED_FMT ON)
  12. add_subdirectory(dynarmic)
  13. # libfmt
  14. add_subdirectory(fmt)
  15. # getopt
  16. if (MSVC)
  17. add_subdirectory(getopt)
  18. endif()
  19. # Glad
  20. add_subdirectory(glad)
  21. # inih
  22. add_subdirectory(inih)
  23. # MicroProfile
  24. add_library(microprofile INTERFACE)
  25. target_include_directories(microprofile INTERFACE ./microprofile)
  26. # Nihstro
  27. add_library(nihstro-headers INTERFACE)
  28. target_include_directories(nihstro-headers INTERFACE ./nihstro/include)
  29. # SoundTouch
  30. add_subdirectory(soundtouch)
  31. # The SoundTouch target doesn't export the necessary include paths as properties by default
  32. target_include_directories(SoundTouch INTERFACE ./soundtouch/include)
  33. # Xbyak
  34. if (ARCHITECTURE_x86_64)
  35. # Defined before "dynarmic" above
  36. # add_library(xbyak INTERFACE)
  37. target_include_directories(xbyak INTERFACE ./xbyak/xbyak)
  38. target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES)
  39. endif()
  40. # ENet
  41. add_subdirectory(enet)
  42. target_include_directories(enet INTERFACE ./enet/include)