Same as internal lib but without some operations.
You may need to include the math library:
let package = Package(
name: "xxx",
products: [
.executable(name: "main", targets: ["app"])
],
dependencies: [
.package(
url: "https://github.com/LiarPrincess/Oh-my-decimal",
from: "0.0.1"
)
],
targets: [
.executableTarget(
name: "app",
dependencies: [
.product(name: "Decimal", package: "Oh-my-decimal")
],
path: "Sources",
linkerSettings: [.unsafeFlags(["-lm"])] // <----- HERE!
),
]
)