CMakeLists.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. # CPR
  6. option(BUILD_TESTING OFF)
  7. option(BUILD_CPR_TESTS OFF)
  8. add_subdirectory(cpr)
  9. target_include_directories(cpr INTERFACE ./cpr/include)
  10. # Crypto++
  11. add_subdirectory(cryptopp)
  12. # Dynarmic
  13. # Dynarmic will skip defining xbyak if it's already defined, we then define it below
  14. add_library(xbyak INTERFACE)
  15. option(DYNARMIC_TESTS OFF)
  16. set(DYNARMIC_NO_BUNDLED_FMT ON)
  17. add_subdirectory(dynarmic)
  18. # libfmt
  19. add_subdirectory(fmt)
  20. # getopt
  21. if (MSVC)
  22. add_subdirectory(getopt)
  23. endif()
  24. # Glad
  25. add_subdirectory(glad)
  26. # inih
  27. add_subdirectory(inih)
  28. # MicroProfile
  29. add_library(microprofile INTERFACE)
  30. target_include_directories(microprofile INTERFACE ./microprofile)
  31. # Nihstro
  32. add_library(nihstro-headers INTERFACE)
  33. target_include_directories(nihstro-headers INTERFACE ./nihstro/include)
  34. # SoundTouch
  35. add_subdirectory(soundtouch)
  36. # The SoundTouch target doesn't export the necessary include paths as properties by default
  37. target_include_directories(SoundTouch INTERFACE ./soundtouch/include)
  38. # Xbyak
  39. if (ARCHITECTURE_x86_64)
  40. # Defined before "dynarmic" above
  41. # add_library(xbyak INTERFACE)
  42. target_include_directories(xbyak INTERFACE ./xbyak/xbyak)
  43. target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES)
  44. endif()
  45. # ENet
  46. add_subdirectory(enet)
  47. target_include_directories(enet INTERFACE ./enet/include)