-
Notifications
You must be signed in to change notification settings - Fork 8
/
conanfile.py
28 lines (23 loc) · 1.01 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from conans import ConanFile, CMake, tools
class MoneycppConan(ConanFile):
name = "moneycpp"
version = "2021-04-24"
license = "MIT License"
author = "Marius Bancila https://github.com/mariusbancila"
url = "https://github.com/mariusbancila/moneycpp"
description = "A C++ 17 header-only, cross-platform library for handling monetary values, currencies, rounding " \
"and other related features. "
topics = ("monetary", "currency", "rounding")
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True}
generators = "cmake"
exports_sources = "include/*"
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
def package(self):
self.copy("*.h", src="include", dst="include/moneycpp")
def build(self):
# header only, nothing to build, add method to prevent warning from conan
yield