package("libjuice") add_deps("cmake") set_sourcedir(path.join(os.scriptdir(), "")) on_install(function (package) local configs = {} table.insert(configs, "-DNO_EXPORT_HEADER=ON -DNO_TESTS=ON") import("package.tools.cmake").install(package, configs) end) -- on_test(function (package) -- assert(package:has_cfuncs("juice_create", {includes = "juice/juice.h"})) -- end) package_end()