package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
670 B
22 lines
670 B
3 months ago
|
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)
|