Skip to content

Commit

Permalink
fpm: add package (#5353)
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 27, 2024
1 parent 0572fb0 commit 8290c62
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/f/fpm/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package("fpm")
set_kind("library", {headeronly = true})
set_homepage("https://mikelankamp.github.io/fpm")
set_description("C++ header-only fixed-point math library")
set_license("MIT")

add_urls("https://github.com/MikeLankamp/fpm.git")

add_versions("2024.09.06", "464cf63a5b1a4537e2b86014b2b72f4cfbdfd779")

on_install(function (package)
os.cp("include", package:installdir())
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
fpm::fixed_16_16 x;
}
]]}, {configs = {languages = "c++11"}, includes = "fpm/fixed.hpp"}))
end)

0 comments on commit 8290c62

Please sign in to comment.