xmake.lua 827 B

12345678910111213141516171819202122232425
  1. package("pocketfft")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/mreineck/pocketfft")
  4. set_description("FFT implementation based on FFTPack, but with several improvements")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/mreineck/pocketfft.git")
  7. add_versions("2023.02.14", "076cb3d2536b7c5d0629093ad886e10ac05f3623")
  8. if is_plat("linux") then
  9. add_syslinks("pthread")
  10. end
  11. on_install(function (package)
  12. os.cp("pocketfft_hdronly.h", package:installdir("include"))
  13. end)
  14. on_test(function (package)
  15. assert(package:check_cxxsnippets({test = [[
  16. #include <pocketfft_hdronly.h>
  17. void test() {
  18. pocketfft::shape_t var;
  19. }
  20. ]]}, {configs = {languages = "c++11"}}))
  21. end)