Skip to content

Commit bdbe64b

Browse files
csa: add package (#5011)
* csa: add package * limit plat
1 parent 90e0654 commit bdbe64b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/c/csa/xmake.lua

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package("csa")
2+
set_kind("library", {headeronly = true})
3+
set_homepage("https://epwalsh.github.io/software/csa")
4+
set_description("C++ header-only library for Coupled Simulated Annealing")
5+
set_license("MIT")
6+
7+
add_urls("https://github.com/epwalsh/CSA.git")
8+
add_versions("2018.05.25", "3d7154fd35c35fb7297e25bd507c5e3f705b1ad6")
9+
10+
add_deps("openmp")
11+
12+
on_install("linux", "macosx", "windows", "mingw@msys", function (package)
13+
if package:has_tool("cxx", "gxx") then
14+
package:add("cxxflags", "-fpermissive")
15+
end
16+
os.cp("include", package:installdir())
17+
end)
18+
19+
on_test(function (package)
20+
assert(package:check_cxxsnippets({test = [[
21+
void test() {
22+
CSA::Solver<double, double> solver;
23+
}
24+
]]}, {configs = {languages = "c++11"}, includes = "csa.hpp"}))
25+
end)

0 commit comments

Comments
 (0)