CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. if (NOT MSVC)
  39. target_compile_options(xbyak INTERFACE -fno-operator-names)
  40. endif()
  41. endif()