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.
25 lines
1.0 KiB
25 lines
1.0 KiB
package("tclap") |
|
set_homepage("https://sourceforge.net/projects/tclap/") |
|
set_description("This is a simple templatized C++ library for parsing command line arguments.") |
|
set_license("MIT") |
|
|
|
set_urls("https://netcologne.dl.sourceforge.net/project/tclap/tclap-$(version).tar.bz2") |
|
add_versions("1.4.0-rc1", "33e18c7828f76a9e5f2a00afe575156520e383693059ca9bc34ff562927e20c6") |
|
|
|
add_deps("cmake") |
|
|
|
on_install(function (package) |
|
io.replace("CMakeLists.txt", "add_subdirectory(docs)", "", {plain = true}) |
|
io.replace("CMakeLists.txt", "add_subdirectory(examples)", "", {plain = true}) |
|
io.replace("CMakeLists.txt", "add_subdirectory(tests)", "", {plain = true}) |
|
import("package.tools.cmake").install(package) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <tclap/CmdLine.h> |
|
void test() { |
|
TCLAP::CmdLine cmd("Test", ' ', "0.9"); |
|
} |
|
]]}, {configs = {languages = "c++98"}})) |
|
end)
|
|
|