blob: bebb254f7aadc6d02f8eb11dec40e7a4fcfe48b2 (
plain)
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
29
30
31
32
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()
|