2
0

xmake.lua 670 B

123456789101112131415161718192021
  1. package("fpm")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://mikelankamp.github.io/fpm")
  4. set_description("C++ header-only fixed-point math library")
  5. set_license("MIT")
  6. add_urls("https://github.com/MikeLankamp/fpm.git")
  7. add_versions("2024.09.06", "464cf63a5b1a4537e2b86014b2b72f4cfbdfd779")
  8. on_install(function (package)
  9. os.cp("include", package:installdir())
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. void test() {
  14. fpm::fixed_16_16 x;
  15. }
  16. ]]}, {configs = {languages = "c++11"}, includes = "fpm/fixed.hpp"}))
  17. end)