Add niftiheader package (#1144)
* Add niftiheader package * Update xmake.lua * Update xmake.lua Co-authored-by: charles seizilles <charles.seizilles@iconeus.com>pull/1154/head
parent
ee5a280779
commit
220fd9f164
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
package("niftiheader") |
||||||
|
|
||||||
|
set_kind("library", {headeronly = true}) |
||||||
|
set_homepage("https://nifti.nimh.nih.gov/") |
||||||
|
set_description("Header structure descriptions for the nifti1 and nifti2 file formats.") |
||||||
|
set_license("Public Domain") |
||||||
|
|
||||||
|
add_urls("https://github.com/xmake-mirror/nifti2.git") |
||||||
|
add_versions("0.0.1", "d2461b27888fd5db659edb8b788c7ce6203f703c") |
||||||
|
|
||||||
|
on_install(function(package) |
||||||
|
os.cp("nifti1.h", package:installdir("include")) |
||||||
|
os.cp("nifti2.h", package:installdir("include")) |
||||||
|
end) |
||||||
|
|
||||||
|
on_test(function(package) |
||||||
|
assert(package:has_ctypes("nifti_1_header", {includes = {"nifti1.h"}})) |
||||||
|
assert(package:has_ctypes("nifti_2_header", {includes = {"nifti2.h"}})) |
||||||
|
end) |
Loading…
Reference in new issue