diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2019-12-22 19:47:21 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2019-12-22 21:12:58 +0100 |
| commit | 6370b3fc6ffb973cc272f18d18db521c02fea0f1 (patch) | |
| tree | da965d0a1bb37d523d5e840d74f9a07676a818a0 /conanfile.py | |
| download | newtype-6370b3fc6ffb973cc272f18d18db521c02fea0f1.tar.xz newtype-6370b3fc6ffb973cc272f18d18db521c02fea0f1.zip | |
newtype: initial commit
Diffstat (limited to 'conanfile.py')
| -rw-r--r-- | conanfile.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..bebb254 --- /dev/null +++ b/conanfile.py @@ -0,0 +1,33 @@ +from conans import ConanFile, CMake + +class NewtypeConan(ConanFile): + name = "newtype" + scm = { + "type": "git", + "url": "https://github.com/fmorgner/newtype.git", + "revision": "auto", + } + version = "0.0.1" + license = "BSD-3-Clause" + url = "https://github.com/fmorgner/newtype" + description = "A library of types and functions to create strong type aliases" + generators = "cmake" + requires = ( + "CUTE/2.2.6@fmorgner/stable", + "lyra/1.2.0" + ) + + def _configure_cmake(self): + cmake = CMake(self) + cmake.definitions["BUILD_TESTING"] = True + cmake.configure() + return cmake + + def build(self): + cmake = self._configure_cmake() + cmake.build() + cmake.test() + + def package(self): + cmake = self._configure_cmake() + cmake.install() |
